Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { DB *DB `json:"db"` HTTP *HTTP `json:"http"` TLS *TLS `json:"tls"` Logger *Logger `json:"logger"` Auth *Auth `json:"auth"` Websocket *WebSocket `json:"websocket"` DataDir string `json:"datadir"` }
Config holds configuration data,
type DB ¶
type DB struct { Charset string `json:"charset" valid:"ascii,optional"` Driver string `json:"driver" valid:"in(mysql|sqlserver|postgres|sqlite|clickhouse),required"` Host string `json:"host" valid:"host,optional"` Name string `json:"name" valid:"ascii,required"` Password string `json:"password" valid:"ascii,optional"` Port int `json:"port" valid:"port,optional"` User string `json:"user" valid:"ascii,optional"` }
DB database config.
type HTTP ¶
type HTTP struct { Addr string `json:"addr" valid:"host,required"` TLS bool `json:"tls"` UploadDir string `json:"uploadDir"` Compress bool `json:"compress"` }
HTTP server config.
Click to show internal directories.
Click to hide internal directories.