config

package
v0.0.0-...-9776187 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisObj

func GetRedisObj(name string) (redis.Conn, error)

从连接池中获取redis client

func InitAppConfig

func InitAppConfig()

InitAppConfig init app config.

func InitConf

func InitConf(path string)

InitConf init config.

func InitRedis

func InitRedis()

InitRedis初始化redis

Types

type AppServerConf

type AppServerConf struct {
	AppEnv       string
	AppDebug     bool
	AppName      string
	HttpPort     int
	PProfPort    int
	LogDir       string
	GracefulWait int
}

AppServerConf config.

var AppConf AppServerConf

AppConf app config.

Jump to

Keyboard shortcuts

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