app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Engine *gin.Engine
View Source
var MemCache cache.Cache

Functions

func CheckServer

func CheckServer()

func GetDockerDB

func GetDockerDB() *gorm.DB

func GetSelfDB

func GetSelfDB() *gorm.DB

func InitCli

func InitCli()

func InitConfig

func InitConfig()

func InitDB added in v1.1.0

func InitDB(dbName string) *gorm.DB

func InitDb

func InitDb()

func InitDockerDB

func InitDockerDB() *gorm.DB

func InitEnv added in v1.1.0

func InitEnv()

func InitGin

func InitGin()

func InitLogger

func InitLogger(filePath string)

func InitMemCache added in v1.1.0

func InitMemCache()

func InitRedis

func InitRedis()

func InitSelfDB

func InitSelfDB() *gorm.DB

used for cli

func InitWeb

func InitWeb()

func RunWeb

func RunWeb()

Types

type Config

type Config struct {
	Name string
}

type Database

type Database struct {
	Self   *gorm.DB
	Docker *gorm.DB
}

func (*Database) Close

func (db *Database) Close()

Jump to

Keyboard shortcuts

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