instance

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInitFunc

func AddInitFunc(name string, f PkgInitFunc)

AddInitFunc add InitFunc 2 pkgInitFuncs same name InitFunc will be override

func AppInit

func AppInit(conf *config.Config) error

AppInit init application

func GetKafkaConf

func GetKafkaConf() *config.KafkaConf

GetKafkaConf get KafkaConf

func GetMcClient

func GetMcClient() *memcache.Client

GetMcClient get mcClient

func GetMysqlClient

func GetMysqlClient() *mysql.Mysql

GetMysqlClient get mysqlClient

func GetRedisClient

func GetRedisClient() *redis.ClusterClient

GetRedisClient get redisClient

Types

type PkgInitFunc

type PkgInitFunc func()

PkgInitFunc pkg init function

Jump to

Keyboard shortcuts

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