Documentation
¶
Overview ¶
Package protocol exposes the versioned master/agent contract to master implementations.
Index ¶
- Constants
- func Clone[T any](value T) T
- func CommandNames() []string
- func Decode(raw []byte, target any) error
- func PublicProxyAddress(address string) bool
- func Schemas() map[string]any
- func UserEmail(user User, tag string) string
- func ValidName(value string) bool
- func ValidateMemberOutbounds(raw json.RawMessage, tags []string) error
- func ValidateUsers(users []User) error
- type AgentHello
- type CertConfig
- type Certificate
- type Config
- type DDNSJob
- type DNSPolicy
- type FirewallPolicy
- type Forward
- type IPBlock
- type IPControl
- type Message
- type PortRange
- type Provider
- type TelemetryPolicy
- type TelemetryReport
- type TorrentPolicy
- type Traffic
- type TrafficBarrier
- type TrafficFlush
- type TrafficReport
- type TrafficSample
- type UpdatePolicy
- type User
- type UserControl
- type UserControls
- type UserLimitStatus
- type UserMetrics
- type UserRate
- type UserSpeedStatus
- type UsersDelta
- type UsersSync
Constants ¶
View Source
const MaxFrameBytes = wire.MaxFrameBytes
View Source
const Version = wire.Version
Variables ¶
This section is empty.
Functions ¶
func CommandNames ¶
func CommandNames() []string
func PublicProxyAddress ¶
func ValidateMemberOutbounds ¶
func ValidateMemberOutbounds(raw json.RawMessage, tags []string) error
func ValidateUsers ¶
Types ¶
type AgentHello ¶
type AgentHello = wire.AgentHello
type CertConfig ¶
type CertConfig = config.CertConfig
type Certificate ¶
type Certificate = wire.Certificate
type Config ¶
func ParseConfig ¶
type FirewallPolicy ¶
type FirewallPolicy = wire.FirewallPolicy
type TelemetryPolicy ¶
type TelemetryPolicy = wire.TelemetryPolicy
type TelemetryReport ¶
type TelemetryReport = wire.TelemetryReport
type TorrentPolicy ¶
type TorrentPolicy = wire.TorrentPolicy
type TrafficBarrier ¶
type TrafficBarrier = wire.TrafficBarrier
type TrafficFlush ¶
type TrafficFlush = wire.TrafficFlush
type TrafficReport ¶
type TrafficReport = wire.TrafficReport
type TrafficSample ¶
type TrafficSample = wire.TrafficSample
type UpdatePolicy ¶
type UpdatePolicy = wire.UpdatePolicy
type UserControl ¶
type UserControl = wire.UserControl
type UserControls ¶
type UserControls = wire.UserControls
type UserLimitStatus ¶
type UserLimitStatus = wire.UserLimitStatus
type UserMetrics ¶
type UserMetrics = wire.UserMetrics
type UserSpeedStatus ¶
type UserSpeedStatus = wire.UserSpeedStatus
type UsersDelta ¶
type UsersDelta = wire.UsersDelta
Click to show internal directories.
Click to hide internal directories.