Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CliConf struct { Admin string }
Cli config
View Source
var ConfItemMatcher = [...]*string{&DbConf.Username, &DbConf.Password, &DbConf.Addr, &DbConf.Port, &ServeConf.Addr, &ServeConf.Port, &CliConf.Admin}
Config file matcher
View Source
var ConfItems = [...]ConfItem{dbUsername, dbPassword, dbAddress, dbPort, serveAddress, servePort, authAdmin}
Config file items
View Source
var ConfPath struct { HomePath string ConfFile string ConfDir string }
Config path
View Source
var DbConf struct { Username string Password string Addr string Port string }
Database config
View Source
var ServeConf struct { Addr string Port string }
Serve config
View Source
var ServerInfo struct { StartTime string ServerOS string ServerArch string }
serverInfo stores server info
Supported commands
Functions ¶
func ServerLogger ¶
Types ¶
type Command ¶
type Command string
Command is to defined supported command
const ADD Command = "add"
ADD command
const AUTH Command = "auth"
AUTH command
const DEL Command = "del"
DEL command
const GEN Command = "gen"
GEN command
const HELP Command = "help"
HELP command
const LIST Command = "list"
LIST command
const SERVE Command = "serve"
SERVE command
const SET Command = "set"
SET command
const START Command = "start"
START command
Click to show internal directories.
Click to hide internal directories.