context

package
v0.0.0-...-db8959b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 5 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 {
	C          config.Config
	Db         *db.Mysql
	Cache      *redis.Redis
	Logger     *zap.Zap
	HttpServer *gin.Engine
}

Context 全局context

func NewContext

func NewContext(c config.Config) (Context, error)

func (*Context) Run

func (c *Context) Run()

Jump to

Keyboard shortcuts

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