Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configure ¶
type Configure struct { Initialized bool `toml:"initialized"` WebToken WebToken `toml:"web_token"` Database Database `toml:"database"` Redis Redis `toml:"redis"` Service Service `toml:"service"` }
Configure ...
func (*Configure) ParseDefault ¶
ParseDefault ...
type Database ¶
type Database struct { ShowSQL bool `toml:"show_sql"` UseCache bool `json:"use_cache"` Type string `toml:"type"` Addr string `toml:"addr"` Port string `toml:"port"` Username string `toml:"username"` Password string `toml:"password"` Schema string `toml:"schema"` Location string `toml:"location"` Charset string `toml:"charset"` Prefix string `toml:"prefix"` }
Database ...
type HTTP ¶
type HTTP struct { Enable bool `toml:"enable"` Type string `toml:"type"` Path string `toml:"path"` Port string `toml:"port"` }
HTTP ...
type Redis ¶
type Redis struct { Addr string `toml:"addr"` Password string `toml:"password"` DB int `toml:"db"` }
Redis ...
Click to show internal directories.
Click to hide internal directories.