Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Gin GIN_RELEASE_MODE = false // Session SESSION_STORE = "REDIS" // Cache CACHE_STORE = "MEMCACHED" // Tmpl TMPL_TYPE = "PONGO2" // default="",PONGO2,BINDATA TMPL_DIR = "templates/pongo2" TMPL_SUFFIX = ".html" // .html,.tpl // Static STATIC_TYPE = "BINDATA" // MySQL DB_NAME = "gin_db" DB_USER_NAME = "gin_dba" DB_PASSWORD = "123456" DB_HOST = "127.0.0.1" DB_PORT = "3306" // Redis REDIS = "REDIS" REDIS_SERVER = "127.0.0.1:6379" REDIS_PWD = "123456" // Memcached MEMCACHED = "MEMCACHED" MEMCACHED_SERVER = "localhost:11211" // Bindata BINDATA = "BINDATA" // Pongo2 PONGO2 = "PONGO2" )
View Source
const (
DefaultKey = "conf/db"
)
Variables ¶
This section is empty.
Functions ¶
func DBInit ¶
func DBInit() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.