global

package
v0.0.0-...-ddd8613 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 7 Imported by: 0

README

global

global vars and types like config and env etc.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Repos of current services
	Repos wholeRepo
)

Functions

func GetConfig

func GetConfig() *types.Config

func GetMgoSession

func GetMgoSession() *mgo.Session

GetMgoSession .

func GetMysqlDB

func GetMysqlDB() *gorm.DB

GetMysqlDB .

func GetRedisClient

func GetRedisClient() *redis.Client

GetRedisClient .

func InitRepos

func InitRepos(cfg *types.Config) error

InitRepos .

Types

This section is empty.

Jump to

Keyboard shortcuts

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