Documentation
¶
Index ¶
- Constants
- func CreateClientTLSConfig(cfg TLSConfig) (*tls.Config, error)
- func GenerateInsecureSelfSignedCert() (tls.Certificate, error)
- func NewClientFromConfig(cfg config.TransportConfig) (eventbus.Transport[*anypb.Any], error)
- func NewLocal() eventbus.Transport[*anypb.Any]
- func NewQUICClientTransport(cfg config.TransportConfig) (eventbus.Transport[*anypb.Any], error)
- func NewQUICServerTransport(addr, tlsCert, tlsKey string) (eventbus.Transport[*anypb.Any], error)
- func NewServerFromConfig(cfg config.TransportConfig) (eventbus.Transport[*anypb.Any], error)
- type Local
- type QUIC
- type TLSConfig
- type Transport
Constants ¶
const ALPNGapiQUIC = "gapi-quic"
ALPNGapiQUIC is the ALPN protocol identifier for the kernel's QUIC transport. It mirrors the ecosystem ALPN registry as its governing contract (append-only, tombstoned): a collision is a review failure, not a runtime discovery. Consumers (the orchestrator's ALPN router) import this constant and never redefine the literal (GAPI-DIV-011).
Variables ¶
This section is empty.
Functions ¶
func CreateClientTLSConfig ¶
CreateClientTLSConfig builds a tls.Config from the provided settings
func GenerateInsecureSelfSignedCert ¶
func GenerateInsecureSelfSignedCert() (tls.Certificate, error)
GenerateInsecureSelfSignedCert generates a self-signed cert for testing/insecure modes.
func NewClientFromConfig ¶
Config-driven client.
func NewQUICClientTransport ¶
QUIC client transport.
func NewQUICServerTransport ¶
QUIC server transport.
func NewServerFromConfig ¶
Config-driven server.
Types ¶
type Local ¶
type Local[T any] struct { // contains filtered or unexported fields }
Local provides an in-proc "loopback" transport used for testing or single-process mode.
func (*Local[T]) OnRemoteEvent ¶
type QUIC ¶
type QUIC struct {
// contains filtered or unexported fields
}
func NewQUICClient ¶
func NewQUICServer ¶
func NewQUICServer(addr string, cert tls.Certificate) (*QUIC, error)