Documentation ¶
Index ¶
Constants ¶
View Source
const ( URLPrefix = "SURL:" URLLockPrefix = "SURL_LOCK:" ShortId = "SURL_SHORT_ID" CODEPrefix = "SURL_CODE:" CODEVistedPrefix = "SURL_CODE_VISITED:" )
Variables ¶
View Source
var (
DEBUG = env.Bool("DEBUG", true)
)
环境变量
Functions ¶
func ConvertIntToStr ¶
Types ¶
type DBConfig ¶
type DBConfig struct { Server string `yaml:"server" json:"server"` Driver string `yaml:"driver" json:"driver"` Host string `yaml:"host" json:"host"` Port uint `yaml:"port" json:"port"` User string `yaml:"user" json:"user"` Password string `yaml:"password" json:"password"` Name string `yaml:"name" json:"name"` MaxIdleConns uint `yaml:"max_idle_conns" json:"max_idle_conns"` MaxOpenConns uint `yaml:"max_open_conns" json:"max_open_conns"` EnableLog bool `yaml:"enable_log" json:"enable_log"` }
DBConfig config of relational database
Click to show internal directories.
Click to hide internal directories.