Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = Config{ Address: "", Port: 8080, Password: "password", Database: Database{ Host: "localhost", User: "postgres", Password: "", DBName: "scoper", Port: 5432, }, }
Default config
View Source
var SuperUsers = make(map[string]string)
SuperUsers predefined list
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `json:"address" envconfig:"SERVER_ADDRESS"` Port int `json:"port" envconfig:"SERVER_PORT"` Password string `json:"password"` Database Database `json:"database"` }
Config of server
type Database ¶
type Database struct { Host string `json:"host" envconfig:"DATABASE_HOST"` User string `json:"user" envconfig:"DATABASE_USER"` Password string `json:"password" envconfig:"DATABASE_PASS"` DBName string `json:"dbname" envconfig:"DATABASE_NAME"` Port int `json:"port" envconfig:"DATABASE_PORT"` }
Database config
Click to show internal directories.
Click to hide internal directories.