Documentation
¶
Index ¶
Constants ¶
View Source
const SimpleSecretLength = 16
Variables ¶
View Source
var C = Config{}
Functions ¶
func InitPublicAddress ¶
Types ¶
type Config ¶
type Config struct { Bind *net.TCPAddr `json:"bind"` PublicIPv4 *net.TCPAddr `json:"public_ipv4"` PublicIPv6 *net.TCPAddr `json:"public_ipv6"` StatsBind *net.TCPAddr `json:"stats_bind"` StatsdAddr *net.TCPAddr `json:"stats_addr"` StatsdTagsFormat *statsd.TagFormat `json:"statsd_tags_format"` StatsNamespace string `json:"stats_namespace"` CloakHost string `json:"cloak_host"` StatsdTags map[string]string `json:"statsd_tags"` WriteBuffer int `json:"write_buffer"` ReadBuffer int `json:"read_buffer"` CloakPort int `json:"cloak_port"` AntiReplayMaxSize int `json:"anti_replay_max_size"` MultiplexPerConnection int `json:"multiplex_per_connection"` Debug bool `json:"debug"` Verbose bool `json:"verbose"` SecretMode SecretMode `json:"secret_mode"` PreferIP PreferIP `json:"prefer_ip"` NTPServers []string `json:"ntp_servers"` Secret []byte `json:"secret"` AdTag []byte `json:"adtag"` }
func (*Config) ClientReadBuffer ¶ added in v1.0.5
func (*Config) ClientWriteBuffer ¶ added in v1.0.5
func (*Config) MiddleProxyMode ¶ added in v1.0.5
func (*Config) ProxyReadBuffer ¶ added in v1.0.5
func (*Config) ProxyWriteBuffer ¶ added in v1.0.5
type IPURLs ¶
type Opt ¶
type Opt struct { Option OptionType Value interface{} }
type OptionType ¶
type OptionType uint8
const ( OptionTypeDebug OptionType = iota OptionTypeVerbose OptionTypePreferIP OptionTypeBind OptionTypePublicIPv4 OptionTypePublicIPv6 OptionTypeStatsBind OptionTypeStatsNamespace OptionTypeStatsdAddress OptionTypeStatsdTagsFormat OptionTypeStatsdTags OptionTypeWriteBufferSize OptionTypeReadBufferSize OptionTypeCloakPort OptionTypeAntiReplayMaxSize OptionTypeMultiplexPerConnection OptionTypeNTPServers OptionTypeSecret OptionTypeAdtag )
type SecretMode ¶
type SecretMode uint8
const ( SecretModeSimple SecretMode = iota SecretModeSecured SecretModeTLS )
func (SecretMode) String ¶
func (s SecretMode) String() string
Click to show internal directories.
Click to hide internal directories.