From 0b87a1137f330a36419030a4e82363ed36563a23 Mon Sep 17 00:00:00 2001 From: davy Date: Fri, 28 Jun 2019 22:50:59 -0500 Subject: added feeds --- pkg/app/config.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'pkg/app/config.go') 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", + }, } } -- cgit v1.2.3