scryfall

package
v0.0.0-...-68bd8a1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

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

func NewFetcher

func NewFetcher(c *http.Client, limiter *rate.Limiter) *Fetcher

func (*Fetcher) Fetch

func (f *Fetcher) Fetch(number int, set string, lang string, opts ...fetcher.Opt) (fetcher.Card, error)

type Opt

type Opt func(fetcher *Fetcher) *Fetcher

type RLHTTPClient

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

RLHTTPClient Rate Limited HTTP Client

func (*RLHTTPClient) Do

func (c *RLHTTPClient) Do(req *http.Request) (*http.Response, error)

Do dispatches the HTTP request to the network

Jump to

Keyboard shortcuts

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