client

package
v0.0.0-...-afa07b2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: GPL-3.0 Imports: 16 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 {
	HTTP         *http.Client
	Store        store.Store
	Log          *log.Logger
	UserAgent    string
	ESIRateLimit *safeCounter
	ZKBRateLimit *safeCounter
	RetryLimit   int
}

func New

func New() (*Client, error)

func (*Client) FetchAndInsertAxiom

func (client *Client) FetchAndInsertAxiom(mail store.KillmailData) error

func (*Client) FetchAndInsertKillmail

func (client *Client) FetchAndInsertKillmail(id int, hash string) error

func (*Client) FetchAndInsertZKB

func (client *Client) FetchAndInsertZKB(id int) error

func (*Client) MakeESIGet

func (c *Client) MakeESIGet(url string) (out []byte, err error)

func (*Client) MakeGetRequest

func (c *Client) MakeGetRequest(url string) ([]byte, error)

func (*Client) MakeZKBGet

func (c *Client) MakeZKBGet(url string) ([]byte, error)

func (*Client) ResolveIDsToNames

func (client *Client) ResolveIDsToNames(ids []int) (names map[int]string, err error)

Jump to

Keyboard shortcuts

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