Documentation
¶
Index ¶
Constants ¶
View Source
const ( Scheme = "gonzb+ice" TransportNodeIDHeader = "X-GoNZBNet-Transport-Node-ID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Coordinators []CoordinatorConfig
AllowTURN bool
GatherTimeout time.Duration
ConnectTimeout time.Duration
IdleTimeout time.Duration
MaxPeerConnections int
AllowedBasePath string
MaxBodyBytes int64
RequestTimeout time.Duration
MaxInboundRequests int
MaxInflightBytes int64
ChannelsPerMinute int
RequestsPerMinute int
RemoteIPAllowed func(net.IP) bool
LocalInterfaceAllowed func(string) bool
VerifyPeerKey func(context.Context, string, ed25519.PublicKey) error
Observe func(Observation)
}
type CoordinatorConfig ¶
type CoordinatorStatus ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) CoordinatorStatus ¶
CoordinatorStatus returns payload-safe operational metadata. It never includes credentials, SDP, candidates, or observed IP addresses.
func (*Manager) SetHandler ¶
type Observation ¶
type PeerStatus ¶
type PeerStatus struct {
NodeID string `json:"node_id"`
Coordinator string `json:"coordinator"`
PathType string `json:"path_type"`
Connection string `json:"connection_state"`
ICEState string `json:"ice_state"`
RTTMS int64 `json:"rtt_ms"`
Restarts int64 `json:"restarts"`
BytesSent int64 `json:"bytes_sent"`
BytesReceived int64 `json:"bytes_received"`
Active int32 `json:"active_requests"`
Inbound int32 `json:"inbound_requests"`
Channels int32 `json:"inbound_channels"`
}
type Status ¶
type Status struct {
NodeID string `json:"node_id"`
Coordinators []CoordinatorStatus `json:"coordinators"`
Peers []PeerStatus `json:"peers"`
InflightBodyBytes int64 `json:"inflight_body_bytes"`
}
Status is a payload-safe point-in-time transport snapshot for health checks, lab assertions, and operators. It deliberately omits SDP, candidates, credentials, local addresses, and remote addresses.
Click to show internal directories.
Click to hide internal directories.