diff options
| author | davy <davy.wybiral@gmail.com> | 2019-06-28 22:50:59 -0500 |
|---|---|---|
| committer | davy <davy.wybiral@gmail.com> | 2019-06-28 22:50:59 -0500 |
| commit | 0b87a1137f330a36419030a4e82363ed36563a23 (patch) | |
| tree | aa8312e7f72900115f09d523ae38b02d2a425a46 /pkg/app/config.go | |
| parent | ff0b322a332b6c20502faf564292f77001fdb965 (diff) | |
added feeds
Diffstat (limited to 'pkg/app/config.go')
| -rw-r--r-- | pkg/app/config.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/app/config.go b/pkg/app/config.go index c4ea170..12cf21d 100644 --- a/pkg/app/config.go +++ b/pkg/app/config.go @@ -8,6 +8,7 @@ import ( type Config struct { LibraryPath string `json:"library"` Server *ServerConfig `json:"server"` + Feed *FeedConfig `json:"feed"` } type ServerConfig struct { @@ -15,6 +16,18 @@ type ServerConfig struct { Port int `json:"port"` } +type FeedConfig struct { + ExternalURL string `json:"external_url"` + Title string `json:"title"` + Link string `json:"link"` + Description string `json:"description"` + Author struct { + Name string `json:"name"` + Email string `json:"email"` + } `json:"author"` + Copyright string `json:"copyright"` +} + func DefaultConfig() *Config { return &Config{ LibraryPath: "videos", @@ -22,6 +35,9 @@ func DefaultConfig() *Config { Host: "127.0.0.1", Port: 0, }, + Feed: &FeedConfig{ + ExternalURL: "http://localhost", + }, } } |
