api

package
v0.0.0-...-13ec635 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoLootbox = errors.New("No Lootbox description found")
)

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(echo *echo.Echo, cfg *config.AppConfig) (*API, error)

func (*API) RegisterRoutes

func (a *API) RegisterRoutes()

type BaseWhaling

type BaseWhaling struct {
	Realm     string `param:"realm_id"`
	PlayerID  int    `param:"player_id"`
	LootboxID string `param:"lootbox_id"`
}

type QuantityWhaling

type QuantityWhaling struct {
	Quantity int `query:"number_lootbox"`
	BaseWhaling
}

type RemainingShips

type RemainingShips struct {
	Ships []string `json:"ships"`
}

type SearchResult

type SearchResult struct {
	Players []*wgwows.AccountList `json:"players"`
}

type ShipListResult

type ShipListResult struct {
	Ships []string `json:"ships"`
}

type Stats

type Stats struct {
	WhalingQuantitySimple uint64 `json:"simple_whaling_quantity"`
	WhalingQuantityStats  uint64 `json:"stats_whaling_quantity"`
	TargetWhalingSimple   uint64 `json:"simple_whaling_target"`
	TargetWhalingStats    uint64 `json:"stats_whaling_target"`
	OpenedContainers      uint64 `json:"opened_counters"`
}

type TargetWhaling

type TargetWhaling struct {
	Target        string   `query:"target"`
	ExcludedShips []string `query:"excluded_ships[]"`
	BaseWhaling
}

type UserSearch

type UserSearch struct {
	NickStart string `query:"nick_start"`
	Realm     string `param:"realm_id"`
}

type UserShipList

type UserShipList struct {
	Realm    string `param:"realm_id"`
	PlayerID int    `param:"player_id"`
}

Jump to

Keyboard shortcuts

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