Documentation ¶
Index ¶
- Constants
- func GameData[T any](httpDoer internal.HTTPDoer, requestURL url.URL) ([]T, error)
- func GameDataURL(baseURL url.URL, serviceID string, verb Verb, gameNamespace Namespace, ...) (url.URL, error)
- func GameImageURL(baseURL url.URL, gameNamespace Namespace, imageType, imageID string) (url.URL, error)
- type Collection
- type Namespace
- type Pathfinder
- type Verb
Constants ¶
View Source
const ( BaseURL = "https://census.daybreakgames.com" DefaultServiceID = "s:example" )
Variables ¶
This section is empty.
Functions ¶
func GameDataURL ¶
Types ¶
type Collection ¶
Collection is a dynamic, game-dependent object that can be queried through Census API.
Source: https://census.daybreakgames.com/#collection It is implemented inside Satellite, because it's a game-agnostic structure.
type Namespace ¶
type Namespace string
Namespace identifies the game from which data will be queried.
Source: https://census.daybreakgames.com/#namespace
const ( // NamespaceEveryQuest2 is namespace for EverQuest II. NamespaceEveryQuest2 Namespace = "eq2" // NamespacePlanetSide2PCV1 is V1 namespace for PlanetSide 2 (PC version). // // DEPRECATED: Use NamespacePlanetSide2PCV2 or NamespacePlanetSide2PC instead. NamespacePlanetSide2PCV1 Namespace = "ps2:v1" // NamespacePlanetSide2PCV2 is V2 namespace for PlanetSide 2 (PC version). NamespacePlanetSide2PCV2 Namespace = "ps2:v2" // NamespacePlanetSide2PCV1 is namespace for PlanetSide 2 (PC version). NamespacePlanetSide2PC Namespace = NamespacePlanetSide2PCV2 // NamespacePlanetSide2PS4US is namespace for US PlanetSide 2 (Playstation 4). NamespacePlanetSide2PS4US Namespace = "ps2ps4us:v2" // NamespacePlanetSide2PS4EU is namespace for EU PlanetSide 2 (Playstation 4). NamespacePlanetSide2PS4EU Namespace = "ps2ps4eu:v2" // NamespaceDCUniverseOnline is namespace for DC Univese Online (PC and Playstation 3). NamespaceDCUniverseOnline Namespace = "dcuo:v1" )
type Pathfinder ¶
Pathfinder groups API interfaces for a game namespace.
The goal of this structure is to make writing function calls faster.
func DefaultPathfinder ¶
func DefaultPathfinder() *Pathfinder
func (*Pathfinder) GameDataURL ¶
func (*Pathfinder) GameImageURL ¶
func (s *Pathfinder) GameImageURL(imageType, imageID string) (url.URL, error)
Click to show internal directories.
Click to hide internal directories.