warcraftlogs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ApiKeyParam = "api_key"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*ctx.Ctx

	HTTP *http.Client
	Base *url.URL
	DB   *badger.DB
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx *ctx.Ctx, HTTP *http.Client, baseUrl string, apiKey string, db *badger.DB) *Client

func (*Client) AllEvents

func (c *Client) AllEvents(code string, fight *fight.Fight) (fs []events.Event, err error)

func (*Client) Events

func (c *Client) Events(code string, fight *fight.Fight, filter string) (fs []events.Event, err error)

func (*Client) Fights

func (c *Client) Fights(code string) (fs fight.Fights, err error)

func (*Client) SourceEvents

func (c *Client) SourceEvents(code string, fight *fight.Fight, guid int) (fs []events.Event, err error)

func (*Client) TargetEvents

func (c *Client) TargetEvents(code string, fight *fight.Fight, guid int) (fs []events.Event, err error)

func (*Client) TypeEvents

func (c *Client) TypeEvents(code string, fight *fight.Fight, etype string) (fs []events.Event, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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