Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DirectTarget = Target{ Name: "direct", Dialer: &net.Dialer{ DualStack: true, }, }
Functions ¶
This section is empty.
Types ¶
type AddressDetails ¶
type AddressDetails struct { Address string // for dial functions: [...]:... FQDN string // only the domain name, if available IP net.IP Zone string // ipv6 zone [...%zone]:... Port string }
func ParseAddress ¶
func ParseAddress(addr string) (*AddressDetails, error)
type Map ¶
type Map struct {
Routes []Route
}
first match wins
func ReadMapFile ¶
func (Map) MatchCommand ¶
func (m Map) MatchCommand(network string, address AddressDetails) string
type Route ¶
type Route interface { // could theoretically create dynamic targets for each match Match(network string, address AddressDetails) *Target Command() string }
func ParseRoute ¶
Click to show internal directories.
Click to hide internal directories.