Documentation
¶
Index ¶
Constants ¶
View Source
const ( IMDbAuthMethodCredentials = "credentials" IMDbAuthMethodCookies = "cookies" IMDbAuthMethodNone = "none" SyncModeAddOnly = "add-only" SyncModeDryRun = "dry-run" SyncModeFull = "full" SyncTimeoutDefault = time.Minute * 15 )
Variables ¶
View Source
var (
ErrUserAborted = errors.New("user aborted")
)
Functions ¶
func NewTeaProgram ¶
func NewTeaProgram(conf map[string]interface{}, opts ...tea.ProgramOption) *tea.Program
Types ¶
type Config ¶
type Config struct { IMDb IMDb `koanf:"IMDB"` Trakt Trakt `koanf:"TRAKT"` Sync Sync `koanf:"SYNC"` // contains filtered or unexported fields }
func NewFromMap ¶
type IMDb ¶
type IMDb struct { Auth *string `koanf:"AUTH"` Email *string `koanf:"EMAIL"` Password *string `koanf:"PASSWORD"` CookieAtMain *string `koanf:"COOKIEATMAIN"` CookieUbidMain *string `koanf:"COOKIEUBIDMAIN"` Lists *[]string `koanf:"LISTS"` Trace *bool `koanf:"TRACE"` Headless *bool `koanf:"HEADLESS"` BrowserPath *string `koanf:"BROWSERPATH"` }
Click to show internal directories.
Click to hide internal directories.