context

package
v0.0.0-...-41edef4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Config *config.Config
	Logger *logrus.Logger
}

上下文

func (*Context) SetLogger

func (c *Context) SetLogger(logger *logrus.Logger)

SetLogger 日志记录 默认输出到 os.Stdout 可以新建 logger 输出到指定文件 如果不想开启日志,可以输出到 /dev/null log.SetOutput(ioutil.Discard)

Jump to

Keyboard shortcuts

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