conf

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerConf = &serverConf{}

Functions

func LoadConf

func LoadConf(file string) error

func LoadDefaultConf added in v0.0.9

func LoadDefaultConf()

Types

type LogConf added in v0.1.0

type LogConf struct {
	Level   string `yaml:"level"`
	File    string `yaml:"file"`
	Json    bool   `yaml:"json"`
	Console bool   `yaml:"console"`
}

type Logger added in v0.1.0

type Logger struct {
	Dir        string              `yaml:"dir"`
	MaxSize    int                 `yaml:"maxSize"`
	MaxBackups int                 `yaml:"maxBackups"`
	MaxAge     int                 `yaml:"maxAge"`
	Compress   bool                `yaml:"compress"`
	Line       bool                `yaml:"line"`
	Console    bool                `yaml:"console"`
	Json       bool                `yaml:"json"`
	Loggers    map[string]*LogConf `yaml:"loggers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL