ladder

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Character

type Character struct {
	Name   string `json:"name"`
	Class  string `json:"class"`
	Level  int    `json:"level"`
	Rank   int    `json:"rank"`
	Title  string `json:"prefix"`
	Status string `json:"status"`
}

Character represents a ladder character.

type Client

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

Client encapsulates the details of the Ladder API.

func NewClient

func NewClient() Client

NewClient returns a new ladder client with all dependencies.

func (*Client) GetLadder

func (c *Client) GetLadder(mode string) ([]Character, error)

GetLadder gets the top ladder characters for the given mode.

Jump to

Keyboard shortcuts

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