Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllDebrid ¶
type AllDebrid struct {
// Allow to set a custom HTTP transport (for test purposes)
CustomTransport http.RoundTripper
SupportedHostsRegex []*regexp.Regexp
// contains filtered or unexported fields
}
AllDebrid is an interface for alldebrid.com
func (*AllDebrid) IsDebridable ¶
IsDebridable indicates if an uri is supported by AllDebrid
type Debrider ¶
type Debrider interface {
Init() error
Auth(infos map[string]string) error
Debrid(uri string, options map[string]interface{}) (string, error)
// IsDebridable will be used to switch between multiple debriders
IsDebridable(uri string) bool
}
Debrider takes an URI and return a debrided URI
Click to show internal directories.
Click to hide internal directories.