Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C2SConfig ¶
type C2SConfig struct {
Listeners c2s.ListenersConfig `fig:"listeners"`
}
C2SConfig defines C2S subsystem configuration.
type ClusterConfig ¶
type ClusterConfig struct { Type string `fig:"type" default:"none"` KV kv.Config `fig:"kv"` Server clusterserver.Config `fig:"server"` }
ClusterConfig defines cluster configuration.
func (ClusterConfig) IsEnabled ¶ added in v0.58.0
func (c ClusterConfig) IsEnabled() bool
IsEnabled tells whether cluster config is enabled.
type ComponentsConfig ¶
type ComponentsConfig struct {
Listeners xep0114.ListenersConfig `fig:"listeners"`
}
ComponentsConfig defines application components configuration.
type Config ¶
type Config struct { MemoryBallastSize int `fig:"memory_ballast_size" default:"134217728"` Logger LoggerConfig `fig:"logger"` Cluster ClusterConfig `fig:"cluster"` HTTPPort int `fig:"http_port" default:"6060"` Peppers pepper.Config `fig:"peppers"` Admin adminserver.Config `fig:"admin"` Storage storage.Config `fig:"storage"` Hosts host.Configs `fig:"hosts"` Shapers []shaper.Config `fig:"shapers"` C2S C2SConfig `fig:"c2s"` S2S S2SConfig `fig:"s2s"` Components ComponentsConfig `fig:"components"` Modules ModulesConfig `fig:"modules"` }
Config defines jackal application configuration.
type Jackal ¶
type Jackal struct {
// contains filtered or unexported fields
}
Jackal is the root data structure for Jackal.
type LoggerConfig ¶
type LoggerConfig struct { Level string `fig:"level" default:"debug"` Format string `fig:"format"` }
LoggerConfig defines logger configuration.
type ModulesConfig ¶
type ModulesConfig struct { // Enabled specifies total set of enabled modules Enabled []string `fig:"enabled"` // Offline: offline storage Offline offline.Config `fig:"offline"` // XEP-0092: Software Version Version xep0092.Config `fig:"version"` // XEP-0198: Stream Management Stream xep0198.Config `fig:"stream"` // XEP-0199: XMPP Ping Ping xep0199.Config `fig:"ping"` }
ModulesConfig defines application modules configuration.
Click to show internal directories.
Click to hide internal directories.