Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Initialize initializes c2s sub system spawning a connection listener for every server configuration.
Types ¶
type CompressConfig ¶
CompressConfig represents a server Stream compression configuration.
func (*CompressConfig) UnmarshalYAML ¶
func (c *CompressConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML satisfies Unmarshaler interface.
type Config ¶
type Config struct { ID string ConnectTimeout time.Duration MaxStanzaSize int ResourceConflict ResourceConflictPolicy Transport TransportConfig SASL []string Compression CompressConfig }
Config represents C2S server configuration.
func (*Config) UnmarshalYAML ¶
UnmarshalYAML satisfies Unmarshaler interface.
type ResourceConflictPolicy ¶
type ResourceConflictPolicy int
ResourceConflictPolicy represents a resource conflict policy.
const ( // Override represents 'override' resource conflict policy. Override ResourceConflictPolicy = iota // Reject represents 'reject' resource conflict policy. Reject // Replace represents 'replace' resource conflict policy. Replace )
type TLSConfig ¶
type TLSConfig struct { CertFile string `yaml:"cert_path"` PrivKeyFile string `yaml:"privkey_path"` }
TLSConfig represents a server TLS configuration.
type TransportConfig ¶
type TransportConfig struct { Type transport.TransportType BindAddress string Port int KeepAlive time.Duration URLPath string }
TransportConfig represents an XMPP stream transport configuration.
func (*TransportConfig) UnmarshalYAML ¶
func (t *TransportConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML satisfies Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.