Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server bool // Run as server, if different than false (server) Ip string // Bind address, if different than 0.0.0.0 (server) Port string // listen port, if different than '7777' (server) DbHandler string // "mongo" (server) MongoHost string // mongoDB host, if different than 'localhost' (server) MongoDbName string // mongoDB db name, if different than 'filesrv' (server) MongoUsername string // mongoDB username, if any (server) MongoPassword string // mongoDB password, if any (server) RemoteHost string // imgsrv server to push files to (client) Map map[string]interface{} // key/value options (not used currently) }
func ReadConfigFile ¶
Given a filename to a YAML file, unmarshal it, and return a Config
Click to show internal directories.
Click to hide internal directories.