realdebrid

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, timeout time.Duration, tokenCache, availabilityCache *fastcache.Cache, cacheAge time.Duration, rdBaseURL string, extraHeaders []string) (Client, error)

func (Client) CheckInstantAvailability added in v0.2.0

func (c Client) CheckInstantAvailability(ctx context.Context, apiToken string, infoHashes ...string) []string

func (Client) GetStreamURL

func (c Client) GetStreamURL(ctx context.Context, magnetURL, apiToken string, remote bool) (string, error)

func (Client) TestToken

func (c Client) TestToken(ctx context.Context, apiToken string) error

Jump to

Keyboard shortcuts

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