Documentation ¶
Overview ¶
Package api allows interaction with the SoT API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client allows querying SoT API endpoints
func (*Client) GetBalance ¶
GetBalance retrieves the balance of in-game currencies for the pirate
func (*Client) GetReputation ¶
func (c *Client) GetReputation() (r structs.Reputation, err error)
GetReputation retrieves the reputation for all available campaigns
type RequestError ¶
RequestError is returned as error when a non-200 HTTP response is received
func (RequestError) Error ¶
func (r RequestError) Error() string
Click to show internal directories.
Click to hide internal directories.