configs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LogLevel

func LogLevel() map[string]zapcore.Level

日志器

func NewLogger

func NewLogger(isRotate, rotateConsole, disableStacktrace, disableCeller, isConsole bool, encodingType string) *zap.SugaredLogger

初始化日志

Types

type ActionConfig

type ActionConfig struct {
	Filename string
	Sections *goconfig.ConfigFile
}

func NewActionConfig

func NewActionConfig(filename string) *ActionConfig

func (*ActionConfig) LoadConfigBySectionName

func (c *ActionConfig) LoadConfigBySectionName(sectionName string) (map[string]string, error)

Jump to

Keyboard shortcuts

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