Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v0.6.0
type AddressFamily ¶ added in v0.6.0
type AddressFamily string
const ( ADDRESS_FAMILY_IPV4 AddressFamily = "ipv4" ADDRESS_FAMILY_IPV6 AddressFamily = "ipv6" )
func (AddressFamily) MatchesNetwork ¶ added in v0.6.0
func (af AddressFamily) MatchesNetwork(network string) bool
func (AddressFamily) Network ¶ added in v0.6.0
func (af AddressFamily) Network(protocol string) string
func (AddressFamily) Validate ¶ added in v0.6.0
func (af AddressFamily) Validate() error
type C2SProbe ¶
type C2SProbe struct { DirectTLS bool `yaml:"directtls,omitempty"` TLSConfig config.TLSConfig `yaml:"tls_config,omitempty"` RequireSASLMechanisms []string `yaml:"fail_if_sasl_mechanism_not_offered,omitempty"` ForbidSASLMechanisms []string `yaml:"fail_if_sasl_mechanism_offered,omitempty"` ExportSASLMechanisms bool `yaml:"export_sasl_mechanisms,omitempty"` RestrictAddressFamily AddressFamily `yaml:"restrict_ip_version,omitempty"` }
func (*C2SProbe) UnmarshalYAML ¶
type Config ¶
type Config struct { Modules map[string]Module `yaml:"modules"` Accounts map[string]Account `yaml:"accounts"` }
func LoadConfig ¶ added in v0.6.0
func (*Config) UnmarshalYAML ¶
type IBRProbe ¶
type Module ¶
type Module struct { Prober string `yaml:"prober,omitempty"` Timeout time.Duration `yaml:"timeout,omitempty"` C2S C2SProbe `yaml:"c2s,omitempty"` S2S S2SProbe `yaml:"s2s,omitempty"` Ping PingProbe `yaml:"ping,omitempty"` IBR IBRProbe `yaml:"ibr,omitempty"` }
func (*Module) UnmarshalYAML ¶
type PingProbe ¶
type PingProbe struct { Account string `yaml:"account,omitempty"` PingTimeout time.Duration `yaml:"ping_timeout,omitempty"` ExpectedResults []PingResult `yaml:"fail_if_not,omitempty"` }
func (*PingProbe) UnmarshalYAML ¶
type PingResult ¶
type PingResult struct { Success bool `yaml:"success,omitempty"` ErrorType string `yaml:"error_type,omitempty"` ErrorCondition string `yaml:"error_condition,omitempty"` }
func (PingResult) Matches ¶
func (r PingResult) Matches(other PingResult) bool
type S2SProbe ¶
type S2SProbe struct { DirectTLS bool `yaml:"directtls,omitempty"` TLSConfig config.TLSConfig `yaml:"tls_config,omitempty"` RequireSASLMechanisms []string `yaml:"fail_if_sasl_mechanism_not_offered,omitempty"` ForbidSASLMechanisms []string `yaml:"fail_if_sasl_mechanism_offered,omitempty"` RequireDialback bool `yaml:"fail_if_dialback_not_offered,omitempty"` ForbidDialback bool `yaml:"fail_if_dialback_offered,omitempty"` ExportAuthMechanisms bool `yaml:"export_auth_mechanisms,omitempty"` From string `yaml:"from"` RestrictAddressFamily AddressFamily `yaml:"restrict_ip_version,omitempty"` }
func (*S2SProbe) UnmarshalYAML ¶
type SafeConfig ¶
Click to show internal directories.
Click to hide internal directories.