Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Space Space `json:"space" yaml:"space"` Database Database `json:"database" yaml:"database"` Wiki Wiki `json:"wiki" yaml:"wiki"` }
Config is configuration data
func Global ¶
func Global() Config
Global gets the global configuration, loading it if this is the first caller
type Database ¶
type Database struct { Driver string `json:"driver" yaml:"driver"` Host string `json:"host" yaml:"host"` Port int `json:"port" yaml:"port"` Db string `json:"db" yaml:"db"` Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` Mechanism string `json:"mechanism" yaml:"mechanism"` RestoreIDs bool `json:"restoreIDs" yaml:"restoreIDs"` SSL bool `json:"ssl" yaml:"ssl"` }
Database is configuration for spaces.
type Space ¶
type Space struct { Enabled bool `json:"enabled" yaml:"enabled"` Host string `json:"host" yaml:"host"` AccessKey string `json:"accessKey" yaml:"accessKey"` SecretKey string `json:"secretKey" yaml:"secretKey"` Bucket string `json:"bucket" yaml:"bucket"` MaxSize int64 `json:"maxSize" yaml:"maxSize"` Root string `json:"root" yaml:"root"` URLRoot string `json:"urlRoot" yaml:"urlRoot"` }
Space is configuration for spaces.
Click to show internal directories.
Click to hide internal directories.