Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 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.