Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RepoPath = "./data/repo"
RepoPath points to the actual storage
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Title string `yaml:"title"`
Domain string `yaml:"domain"`
Server *Server `yaml:"server"`
Daemon *Daemon `yaml:"daemon"`
}
Config is a combination of all possible midgard configuration.
type Server ¶
type Server struct {
Addr string `yaml:"addr"`
Mode string `yaml:"mode"`
Store struct {
Prefix string `yaml:"prefix"`
Backup struct {
Enable bool `yaml:"enable"`
Interval int `yaml:"interval"`
Repo string `yaml:"repo"`
} `yaml:"backup"`
} `yaml:"store"`
Auth struct {
User string `yaml:"user"`
Pass string `yaml:"pass"`
} `json:"auth"`
}
Server is the midgard server side configuration
Click to show internal directories.
Click to hide internal directories.