|
@@ -20,11 +20,18 @@ type API struct {
|
|
User string `yaml:"user"`
|
|
User string `yaml:"user"`
|
|
Password string `yaml:"password"`
|
|
Password string `yaml:"password"`
|
|
HTTP HTTPConfig `yaml:"http"`
|
|
HTTP HTTPConfig `yaml:"http"`
|
|
|
|
+ Trakt Trakt `yaml:"trakt"`
|
|
client *http.Client
|
|
client *http.Client
|
|
userInfo UserInfo
|
|
userInfo UserInfo
|
|
servers map[string]*Server
|
|
servers map[string]*Server
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// Trakt struct
|
|
|
|
+type Trakt struct {
|
|
|
|
+ ClientID string `yaml:"client-id"`
|
|
|
|
+ Token string `yaml:"token"`
|
|
|
|
+}
|
|
|
|
+
|
|
// HTTPConfig struct
|
|
// HTTPConfig struct
|
|
type HTTPConfig struct {
|
|
type HTTPConfig struct {
|
|
Timeout time.Duration `yaml:"timeout"`
|
|
Timeout time.Duration `yaml:"timeout"`
|