Documentation
¶
Overview ¶
Package clientcfg describes the configuration file format and data types used by wireleap.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accesskey ¶
type Accesskey struct {
// UseOnDemand sets whether pofs are used to generate new servicekeys
// automatically.
UseOnDemand bool `json:"use_on_demand,omitempty"`
}
Accesskey is the section dealing with accesskey configuration.
type Address ¶
type Address struct {
// Address.Socks is the SOCKSv5 TCP and UDP listening address.
Socks *string `json:"socks,omitempty"`
// Address.H2C is the h2c listening address for local connections.
H2C *string `json:"h2c,omitempty"`
// Address.Tun is the listening address configuration for wireleap_tun.
Tun *string `json:"tun,omitempty"`
}
Address describes the listening addresses and ports.
type C ¶
type C struct {
// Timeout is the dial timeout.
Timeout duration.T `json:"timeout,omitempty"`
// Contract is the service contract used by this wireleap.
Contract *texturl.URL `json:"contract,omitempty"`
// Accesskey is the section dealing with accesskey configuration.
Accesskey Accesskey `json:"accesskey,omitempty"`
// Circuit describes the configuration of the Wireleap connection circuit.
Circuit Circuit `json:"circuit,omitempty"`
// Address describes the listening addresses and ports.
Address Address `json:"address,omitempty"`
}
C is the type of the config struct describing the config file format.
type Circuit ¶
type Circuit struct {
// Whitelist is the optional user-defined list of relays to use exclusively.
Whitelist *[]string `json:"whitelist,omitempty"`
// Hops is the desired number of hops to use for the circuit.
Hops int `json:"hops,omitempty"`
}
Circuit describes the configuration of the Wireleap connection circuit.
Click to show internal directories.
Click to hide internal directories.