Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HookAuthConfig ¶
type HookAuthConfig struct {
Ledger auth.Ledger `yaml:"ledger" json:"ledger"`
AllowAll bool `yaml:"allow_all" json:"allow_all"`
}
HookAuthConfig contains configurations for the auth hook.
type HookConfigs ¶
type HookConfigs struct {
Auth *HookAuthConfig `yaml:"auth" json:"auth"`
Storage *HookStorageConfig `yaml:"storage" json:"storage"`
Debug *debug.Options `yaml:"debug" json:"debug"`
}
HookConfigs contains configurations to enable individual hooks.
func (HookConfigs) ToHooks ¶
func (hc HookConfigs) ToHooks() []mqtt.HookLoadConfig
ToHooks converts Hook file configurations into Hooks to be added to the server.
type HookStorageConfig ¶
type HookStorageConfig struct {
Badger *badger.Options `yaml:"badger" json:"badger"`
Bolt *bolt.Options `yaml:"bolt" json:"bolt"`
Pebble *pebble.Options `yaml:"pebble" json:"pebble"`
Redis *redis.Options `yaml:"redis" json:"redis"`
}
HookStorageConfig contains configurations for the different storage hooks.
type LoggingConfig ¶
type LoggingConfig struct {
Level string
}
func (LoggingConfig) ToLogger ¶
func (lc LoggingConfig) ToLogger() *slog.Logger
Click to show internal directories.
Click to hide internal directories.