 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| package gojay
 | |
| 
 | |
| import (
 | |
| 	"time"
 | |
| )
 | |
| 
 | |
| // DecodeTime decodes time with the given format
 | |
| func (dec *Decoder) DecodeTime(v *time.Time, format string) error {
 | |
| 	if dec.isPooled == 1 {
 | |
| 		panic(InvalidUsagePooledDecoderError("Invalid usage of pooled decoder"))
 | |
| 	}
 | |
| 	return dec.decodeTime(v, format)
 | |
| }
 | |
| 
 | |
| func (dec *Decoder) decodeTime(v *time.Time, format string) error {
 | |
| 	if format == time.RFC3339 {
 | |
| 		var ej = make(EmbeddedJSON, 0, 20)
 | |
| 		if err := dec.decodeEmbeddedJSON(&ej); err != nil {
 | |
| 			return err
 | |
| 		}
 | |
| 		if err := v.UnmarshalJSON(ej); err != nil {
 | |
| 			return err
 | |
| 		}
 | |
| 		return nil
 | |
| 	}
 | |
| 	var str string
 | |
| 	if err := dec.decodeString(&str); err != nil {
 | |
| 		return err
 | |
| 	}
 | |
| 	tt, err := time.Parse(format, str)
 | |
| 	if err != nil {
 | |
| 		return err
 | |
| 	}
 | |
| 	*v = tt
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // Add Values functions
 | |
| 
 | |
| // AddTime decodes the JSON value within an object or an array to a *time.Time with the given format
 | |
| func (dec *Decoder) AddTime(v *time.Time, format string) error {
 | |
| 	return dec.Time(v, format)
 | |
| }
 | |
| 
 | |
| // Time decodes the JSON value within an object or an array to a *time.Time with the given format
 | |
| func (dec *Decoder) Time(v *time.Time, format string) error {
 | |
| 	err := dec.decodeTime(v, format)
 | |
| 	if err != nil {
 | |
| 		return err
 | |
| 	}
 | |
| 	dec.called |= 1
 | |
| 	return nil
 | |
| }
 |