Documentation
¶
Index ¶
- func InitEnv()
- func InitTokens()
- func Load()
- func LoadConfig()
- func LoadDefaults()
- func LoadDir(path string, dir string, config *koanf.Koanf, parser koanf.Parser) error
- func LoadEnv(config *koanf.Koanf) (koanf.Provider, error)
- func LoadFile(path string, config *koanf.Koanf, parser koanf.Parser) (koanf.Provider, error)
- func LoadTokens()
- func WatchFile(path string, f *file.File)
- type ENV_
- type SETTING_
- type TOKEN_CONFIG_
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTokens ¶
func InitTokens()
func LoadConfig ¶
func LoadConfig()
func LoadDefaults ¶
func LoadDefaults()
func LoadTokens ¶
func LoadTokens()
Types ¶
type ENV_ ¶
type SETTING_ ¶
type SETTING_ struct { BLOCKED_ENDPOINTS []string `koanf:"blockedendpoints"` ALLOWED_ENDPOINTS []string `koanf:"allowedendpoints"` VARIABLES map[string]any `koanf:"variables"` DATA_ALIASES map[string][]middlewareTypes.DataAlias `koanf:"dataaliases"` MESSAGE_TEMPLATE string `koanf:"messagetemplate"` }
type TOKEN_CONFIG_ ¶
Click to show internal directories.
Click to hide internal directories.