Adding the start to couchpotato and some middleware

This commit is contained in:
mattburchett committed 2020-05-24 22:29:08 -05:00
1 parent 69de0397a3
commit 5d4f13827c
7 files changed
+106 -53

No files matched your search

+10 -4
View File
@@ -10,17 +10,23 @@ import (
// Config - This struct will hold configuration components.
type Config struct {
Telegram struct {
Token string `json:"token"`
ChatID string `json:"chatID"`
Admins []int `json:"admins"`
Token string `json:"token"`
ChatID string `json:"chatID"`
Admins []int `json:"admins"`
AuthorizedChats []string `json:"authorizedChats"`
} `json:"telegram"`
Sonarr struct {
URL string `json:"url"`
APIKey string `json:"apiKey"`
SeasonLimit int `json:"seasonLimit"`
ProfileID int `json:"proFileId"`
ProfileID int `json:"profileId"`
} `json:"sonarr"`
CouchPotato struct {
URL string `json:"url"`
APIKey string `json:"apiKey"`
ProfileID string `json:"profileId`
} `json:"couchpotato"`
}
//GetConfig gets the configuration values for the api using the file in the supplied configPath.