client

package
v0.0.0-...-2a4d795 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

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

func NewAPI

func NewAPI(userAgent string) *APIClient

func (*APIClient) GetDocument

func (c *APIClient) GetDocument(ctx context.Context, file string, destination interface{}) error

GetDocument retrieves the specified file from the Static JSON API and unmarshals the response into the destination.

func (*APIClient) GetItemSet

func (c *APIClient) GetItemSet(ctx context.Context, set sets.SetName) ([]models.Item, error)

func (*APIClient) GetItemsByID

func (c *APIClient) GetItemsByID(ctx context.Context, ids ...string) ([]models.Item, error)

func (*APIClient) GetItemsByName

func (c *APIClient) GetItemsByName(ctx context.Context, names ...string) ([]models.Item, error)

func (*APIClient) GetItemsByQuery

func (c *APIClient) GetItemsByQuery(ctx context.Context, query string) ([]models.Item, error)

func (*APIClient) GetItemsBySlot

func (c *APIClient) GetItemsBySlot(ctx context.Context, slot slots.SlotName) ([]models.Item, error)

func (*APIClient) GetMonstersByID

func (c *APIClient) GetMonstersByID(ctx context.Context, ids ...string) ([]models.Monster, error)

func (*APIClient) GetMonstersByName

func (c *APIClient) GetMonstersByName(ctx context.Context, names ...string) ([]models.Monster, error)

func (*APIClient) GetMonstersByQuery

func (c *APIClient) GetMonstersByQuery(ctx context.Context, query string) ([]models.Monster, error)

func (*APIClient) GetMonstersThatDrop

func (c *APIClient) GetMonstersThatDrop(ctx context.Context, names ...string) ([]models.Monster, error)

func (*APIClient) GetPrayersByID

func (c *APIClient) GetPrayersByID(ctx context.Context, ids ...string) ([]models.Prayer, error)

func (*APIClient) GetPrayersByName

func (c *APIClient) GetPrayersByName(ctx context.Context, names ...string) ([]models.Prayer, error)

func (*APIClient) GetPrayersByQuery

func (c *APIClient) GetPrayersByQuery(ctx context.Context, query string) ([]models.Prayer, error)

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
api

Jump to

Keyboard shortcuts

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