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"`
Secret string `fig:"secret"`
}
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"`
HTTP HTTPConfig `fig:"http"`
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 HTTPConfig ¶ added in v0.59.0
type HTTPConfig struct {
Port int `fig:"port" default:"6060"`
}
HTTPConfig defines HTTP 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"`
// XEP-0313: Message Archive Management
Mam xep0313.Config `fig:"mam"`
}
ModulesConfig defines application modules configuration.
Click to show internal directories.
Click to hide internal directories.