app

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferPool added in v0.9.13

func BufferPool() (pool *egu.BufferPool)

func Config

func Config() (conf *config.Config)

Config 配置文件

func Container added in v0.7.6

func Container() *dig.Container

Container 容器

func DB added in v0.9.0

func DB() *gorm.DB

DB 返回数据库连接

func Etcd added in v0.9.14

func Etcd() (client *etcd.Client)

Etcd

func GetDB added in v0.9.0

func GetDB(name string) (conn *gorm.DB)

GetDB 通过名称获取数据库连接

func Http added in v0.8.0

func Http() (client *http.Client)

Http client

func InitDB added in v0.9.0

func InitDB() error

InitDB 初始化DB

func Jwt added in v0.9.13

func Jwt() (jwt *auth.JwtAuth)

Jwt jwt组件

func Logger added in v0.9.13

func Logger() (logger *log.Logger)

Logger 日志管理器

func Redis

func Redis() (client *redis.Client)

Redis get redis connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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