config

package
v0.0.0-...-1e82369 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init 初始化配置

Types

type DBConfig

type DBConfig interface {
	GetDialect() string
	GetORM() string
	GetMysql() MysqlConfig
	GetGORM() GORMConfig
}

func GetDBConfig

func GetDBConfig() (ret DBConfig)

type GORMConfig

type GORMConfig interface {
	GetLogMode() bool
	GetAutoMigrate() bool
}

type MysqlConfig

type MysqlConfig interface {
	GetURL() string
	GetEnabled() bool
	GetMaxIdleConnection() int
	GetMaxOpenConnection() int
}

MysqlConfig mysql 配置 接口

Jump to

Keyboard shortcuts

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