Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProxyNone = ProxyVersion{"none"} ProxyV1 = ProxyVersion{"v1"} ProxyV2 = ProxyVersion{"v2"} )
View Source
var ( UnknownRole = Role{} Destination = Role{"destination"} Source = Role{"source"} )
View Source
var ( RouteAny = RouteOption{"any"} RouteDirect = RouteOption{"direct"} RouteRelay = RouteOption{"relay"} )
Functions ¶
func GenServerName ¶
func PBFromForwards ¶
Types ¶
type Forward ¶
type Forward struct {
// contains filtered or unexported fields
}
func ForwardFromPB ¶
func NewForward ¶
func (Forward) MarshalText ¶
func (*Forward) UnmarshalText ¶
type HostPort ¶
func HostPortFromPB ¶
type ProxyVersion ¶ added in v0.5.0
type ProxyVersion struct {
// contains filtered or unexported fields
}
func ParseProxyVersion ¶ added in v0.5.0
func ParseProxyVersion(s string) (ProxyVersion, error)
func ProxyVersionFromPB ¶ added in v0.5.0
func ProxyVersionFromPB(r pbc.ProxyProtoVersion) ProxyVersion
func (ProxyVersion) PB ¶ added in v0.5.0
func (v ProxyVersion) PB() pbc.ProxyProtoVersion
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
func RoleFromPB ¶
func (Role) MarshalText ¶
func (*Role) UnmarshalText ¶
type RouteOption ¶
type RouteOption struct {
// contains filtered or unexported fields
}
func ParseRouteOption ¶
func ParseRouteOption(s string) (RouteOption, error)
func (RouteOption) AllowDirect ¶
func (r RouteOption) AllowDirect() bool
func (RouteOption) AllowFrom ¶
func (r RouteOption) AllowFrom(from RouteOption) bool
func (RouteOption) AllowRelay ¶
func (r RouteOption) AllowRelay() bool
Click to show internal directories.
Click to hide internal directories.