Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type CacheConfig struct { Type CacheTyp `mapstructure:"type"` Disk *DiskCacheConfig `mapstructure:"disk"` S3 *S3CacheConfig `mapstructure:"s3"` }
type Config ¶
type Config struct { Addr string `mapstructure:"addr"` SqliteURL string `mapstructure:"sqliteUrl"` Github *GithubConfig `mapstructure:"github"` Local *LocalConfig `mapstructure:"local"` Page *PageConfig `mapstructure:"page"` Cache *CacheConfig `mapstructure:"cache"` }
func Load ¶
Loads the config file from configPath if specified.
Otherwise searches the standard list of search paths. Returns an error if no configuration files could be found.
func (Config) HasGithubAuth ¶
type DiskCacheConfig ¶
type GithubAuth ¶
type GithubConfig ¶
type GithubConfig struct { Owner string `mapstructure:"owner"` Repo string `mapstructure:"repo"` Path string `mapstructure:"path"` Auth *GithubAuth `mapstructure:"auth"` }
type LocalConfig ¶
type LocalConfig struct {
FilesPath string `mapstructure:"filesPath"`
}
type LogoConfig ¶
type PageConfig ¶
type PageConfig struct { Logo *LogoConfig `mapstructure:"logo"` Title string `mapstructure:"title"` Subtitle string `mapstructure:"subtitle"` }
type S3CacheConfig ¶
type S3CacheConfig struct {
Bucket string `mapstructure:"bucket"`
}
Click to show internal directories.
Click to hide internal directories.