Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ID string DialTimeout time.Duration ConnectTimeout time.Duration DialbackSecret string MaxStanzaSize int Transport TransportConfig }
Config represents an s2s configuration.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML satisfies Unmarshaler interface.
type S2S ¶ added in v0.3.4
type S2S struct {
// contains filtered or unexported fields
}
S2S represents a server-to-server connection manager.
type TLSConfig ¶
type TLSConfig struct { CertFile string `yaml:"cert_path"` PrivKeyFile string `yaml:"privkey_path"` }
TLSConfig represents a server TLS configuration.
type TransportConfig ¶
TransportConfig represents s2s transport configuration.
func (*TransportConfig) UnmarshalYAML ¶
func (c *TransportConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML satisfies Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.