Documentation ¶
Index ¶
- func InitAuth(ctx context.Context, cache cachex.Cache, authConf *conf.AuthConf) (jwtx.Auther, func(), error)
- func NewCkClient(conf *conf.ServerConf) driver.Conn
- func NewDbClient(conf *conf.ServerConf) *gorm.DB
- func NewEtcdClient(conf *conf.ServerConf) *clientv3.Client
- func NewRedisCacheClient(conf *conf.ServerConf) cachex.Cache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCkClient ¶
func NewCkClient(conf *conf.ServerConf) driver.Conn
NewCkClient create clickhouse client with data config
func NewDbClient ¶
func NewDbClient(conf *conf.ServerConf) *gorm.DB
NewDbClient create db client with data config
func NewEtcdClient ¶
func NewEtcdClient(conf *conf.ServerConf) *clientv3.Client
NewEtcdClient create etcd client with data config
func NewRedisCacheClient ¶
func NewRedisCacheClient(conf *conf.ServerConf) cachex.Cache
NewRedisCacheClient create redis client with data config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.