Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize initializes s2s sub system.
Types ¶
type Config ¶
type Config struct { Enabled bool 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 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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.