providers

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() map[string]Provider

List of registered providers

func Register

func Register(p Provider)

Register is called by provider's init to register the provider

Types

type Config added in v0.8.0

type Config struct {
	Log       *mylog.MyLog // Logger
	KeepBonus bool         // Flag

}

Config carries the configuration to providers

type Provider

type Provider interface {
	Configure(c Config)                                                   // Pass general configuration
	Name() string                                                         // Provider's name
	MediaList(context.Context, []*matcher.MatchRequest) chan *media.Media // List of available shows that match one of MatchRequest
	GetMediaDetails(context.Context, *media.Media) error                  // Download more details when available
}

Provider is the interface for a provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL