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>
42 lines
797 B
Go
42 lines
797 B
Go
package dbus
|
|
|
|
import (
|
|
"errors"
|
|
"net"
|
|
)
|
|
|
|
func init() {
|
|
transports["tcp"] = newTcpTransport
|
|
}
|
|
|
|
func tcpFamily(keys string) (string, error) {
|
|
switch getKey(keys, "family") {
|
|
case "":
|
|
return "tcp", nil
|
|
case "ipv4":
|
|
return "tcp4", nil
|
|
case "ipv6":
|
|
return "tcp6", nil
|
|
default:
|
|
return "", errors.New("dbus: invalid tcp family (must be ipv4 or ipv6)")
|
|
}
|
|
}
|
|
|
|
func newTcpTransport(keys string) (transport, error) {
|
|
host := getKey(keys, "host")
|
|
port := getKey(keys, "port")
|
|
if host == "" || port == "" {
|
|
return nil, errors.New("dbus: unsupported address (must set host and port)")
|
|
}
|
|
|
|
protocol, err := tcpFamily(keys)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
socket, err := net.Dial(protocol, net.JoinHostPort(host, port))
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return NewConn(socket)
|
|
}
|