global

package
v0.0.0-...-691314a Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MongoOkShortDB      *qmgo.Database
	MongoLinksColl      *qmgo.Collection
	MongoLinksTraceColl *qmgo.Collection
	MongoAuthsColl      *qmgo.Collection

	Redis *redis.Client
)
View Source
var (
	AppSetting     *setting.AppSettingS
	MongoDBSetting *setting.MongoDBSettingS
	RedisSetting   *setting.RedisSettingS
	Logger         *logger.Logger
)

Functions

func InitEnv

func InitEnv()

func NewMongoDB

func NewMongoDB(s *setting.MongoDBSettingS) (*qmgo.Client, error)

func NewRedis

func NewRedis(s *setting.RedisSettingS) *redis.Client

func SetupLogger

func SetupLogger() error

func SetupMongoDB

func SetupMongoDB() error

func SetupRedis

func SetupRedis() error

func SetupSetting

func SetupSetting() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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