Versions in this module Expand all Collapse all v0 v0.11.1 Jan 16, 2021 v0.11.0 Jan 16, 2021 Changes in this version + var DefaultClientOpts = ClientOptions + type Client struct + func NewClient(opts ClientOptions, apiKeyCache, availabilityCache debrid.Cache, ...) (*Client, error) + func (c *Client) CheckInstantAvailability(ctx context.Context, keyOrToken string, infoHashes ...string) []string + func (c *Client) GetStreamURL(ctx context.Context, magnetURL, keyOrToken string) (string, error) + func (c *Client) TestAPIkey(ctx context.Context, keyOrToken string) error + type ClientOptions struct + BaseURL string + CacheAge time.Duration + ExtraHeaders []string + ForwardOriginIP bool + Timeout time.Duration + func NewClientOpts(baseURL string, timeout, cacheAge time.Duration, extraHeaders []string, ...) ClientOptions