startup

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SectionMysqlMicroMall = "micro-mall-mysql"
	SectionRedisMicroMall = "micro-mall-redis"
	SectionEmailConfig    = "email-config"
	SectionVerifyCode     = "micro-mall-verify_code"
	SectionG2Cache        = "micro-mall-g2cache"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

LoadConfig 加载自定义配置项

func RegisterHttpRoute

func RegisterHttpRoute() *gin.Engine

RegisterHttpRoute 此处注册http接口

func RegisterTasks

func RegisterTasks() []vars.CronTask

注册定时任务

func SetStopFunc added in v1.1.0

func SetStopFunc() (err error)

func SetupVars

func SetupVars() error

SetupVars 加载变量

Types

type AccessErrLogger

type AccessErrLogger struct{}

func (*AccessErrLogger) Write

func (a *AccessErrLogger) Write(p []byte) (n int, err error)

type AccessInfoLogger

type AccessInfoLogger struct{}

func (*AccessInfoLogger) Write

func (a *AccessInfoLogger) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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