Documentation
¶
Index ¶
Constants ¶
View Source
const LogNodeName = "node.name"
View Source
const LogPluginId = "plugin.id"
View Source
const TraceLevel = zapcore.DebugLevel - 1
Variables ¶
This section is empty.
Functions ¶
func GetPluginConfig ¶ added in v0.0.3
func GetPluginConfig(format pluginv1.ConfigFormat, pluginId string) ([]byte, error)
func LoadDefaultConfig ¶
func LoadDefaultConfig()
Types ¶
type Config ¶
type Config struct {
Log struct {
Level string `koanf:"level"`
Format string `koanf:"format"`
Loggers map[string]Logger `koanf:"loggers"`
} `koanf:"log"`
Reboot struct {
CheckInterval time.Duration `koanf:"checkInterval"`
}
ContainerNode bool `koanf:"containerNode"`
}
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.