Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Database Database `json:"database,omitempty"` Filesystem Filesystem `json:"filesystem,omitempty"` WebServer WebServer `json:"webserver,omitempty"` }
Config struct holds configuration data
func CreateConfig ¶
func CreateConfig(dbhost, dbname, dbusername, dbpassword, fstype, fspath, servehost, servepath string, serveport, dbport int) *Config
CreateConfig generates a configuration that can be saved
func (*Config) GetPublicPath ¶
GetPublicPath returns the public path under the web server
type Database ¶
type Database struct { Host string `json:"host,omitempty"` Port int `json:"port,omitempty"` Database string `json:"dbname,omitempty"` Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` }
Database configuration container
type Filesystem ¶
Filesystem configuration container
Click to show internal directories.
Click to hide internal directories.