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>
53 lines
917 B
Go
53 lines
917 B
Go
package dbus
|
|
|
|
import (
|
|
"encoding/binary"
|
|
"errors"
|
|
"io"
|
|
"unsafe"
|
|
)
|
|
|
|
var nativeEndian binary.ByteOrder
|
|
|
|
func detectEndianness() binary.ByteOrder {
|
|
var x uint32 = 0x01020304
|
|
if *(*byte)(unsafe.Pointer(&x)) == 0x01 {
|
|
return binary.BigEndian
|
|
}
|
|
return binary.LittleEndian
|
|
}
|
|
|
|
func init() {
|
|
nativeEndian = detectEndianness()
|
|
}
|
|
|
|
type genericTransport struct {
|
|
io.ReadWriteCloser
|
|
}
|
|
|
|
func (t genericTransport) SendNullByte() error {
|
|
_, err := t.Write([]byte{0})
|
|
return err
|
|
}
|
|
|
|
func (t genericTransport) SupportsUnixFDs() bool {
|
|
return false
|
|
}
|
|
|
|
func (t genericTransport) EnableUnixFDs() {}
|
|
|
|
func (t genericTransport) ReadMessage() (*Message, error) {
|
|
return DecodeMessage(t)
|
|
}
|
|
|
|
func (t genericTransport) SendMessage(msg *Message) error {
|
|
fds, err := msg.CountFds()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if fds != 0 {
|
|
return errors.New("dbus: unix fd passing not enabled")
|
|
}
|
|
return msg.EncodeTo(t, nativeEndian)
|
|
}
|