client

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const GetAllegiancesDocument = `` /* 212-byte string literal not displayed */
View Source
const GetGrandAlliancesDocument = `` /* 152-byte string literal not displayed */
View Source
const GetUnitsDocument = `` /* 284-byte string literal not displayed */
View Source
const GetWarscrollsDocument = `` /* 234-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type AllegianceFilters

type AllegianceFilters struct {
	Name          *string `json:"name,omitempty"`
	GrandAlliance *string `json:"grandAlliance,omitempty"`
	Limit         *int64  `json:"limit,omitempty"`
	Offset        *int64  `json:"offset,omitempty"`
}

type AllegianceFragment

type AllegianceFragment struct {
	ID            string  "json:\"id\" graphql:\"id\""
	Name          string  "json:\"name\" graphql:\"name\""
	Description   *string "json:\"description,omitempty\" graphql:\"description\""
	GrandAlliance *string "json:\"grandAlliance,omitempty\" graphql:\"grandAlliance\""
	MortalRealm   *string "json:\"mortalRealm,omitempty\" graphql:\"mortalRealm\""
}

func (*AllegianceFragment) GetDescription

func (t *AllegianceFragment) GetDescription() *string

func (*AllegianceFragment) GetGrandAlliance

func (t *AllegianceFragment) GetGrandAlliance() *string

func (*AllegianceFragment) GetID

func (t *AllegianceFragment) GetID() string

func (*AllegianceFragment) GetMortalRealm

func (t *AllegianceFragment) GetMortalRealm() *string

func (*AllegianceFragment) GetName

func (t *AllegianceFragment) GetName() string

type Client

type Client struct {
	Client *clientv2.Client
}

func NewClient

func NewClient(cli *http.Client, baseURL string, options *clientv2.Options, interceptors ...clientv2.RequestInterceptor) *Client

func (*Client) GetAllegiances

func (c *Client) GetAllegiances(ctx context.Context, filter AllegianceFilters, interceptors ...clientv2.RequestInterceptor) (*GetAllegiances, error)

func (*Client) GetGrandAlliances

func (c *Client) GetGrandAlliances(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetGrandAlliances, error)

func (*Client) GetUnits

func (c *Client) GetUnits(ctx context.Context, filter UnitFilters, interceptors ...clientv2.RequestInterceptor) (*GetUnits, error)

func (*Client) GetWarscrolls

func (c *Client) GetWarscrolls(ctx context.Context, filter WarscrollFilters, interceptors ...clientv2.RequestInterceptor) (*GetWarscrolls, error)

type GetAllegiances

type GetAllegiances struct {
	Allegiances []*AllegianceFragment "json:\"allegiances\" graphql:\"allegiances\""
}

func (*GetAllegiances) GetAllegiances

func (t *GetAllegiances) GetAllegiances() []*AllegianceFragment

type GetGrandAlliances

type GetGrandAlliances struct {
	GrandAlliances []*GrandAllianceFragment "json:\"grandAlliances\" graphql:\"grandAlliances\""
}

func (*GetGrandAlliances) GetGrandAlliances

func (t *GetGrandAlliances) GetGrandAlliances() []*GrandAllianceFragment

type GetUnits

type GetUnits struct {
	Units []*UnitFragment "json:\"units\" graphql:\"units\""
}

func (*GetUnits) GetUnits

func (t *GetUnits) GetUnits() []*UnitFragment

type GetUnits_Units_UnitFragment_MeleeWeapons

type GetUnits_Units_UnitFragment_MeleeWeapons struct {
	ID string "json:\"id\" graphql:\"id\""
}

func (*GetUnits_Units_UnitFragment_MeleeWeapons) GetID

type GetUnits_Units_UnitFragment_MissileWeapons

type GetUnits_Units_UnitFragment_MissileWeapons struct {
	ID string "json:\"id\" graphql:\"id\""
}

func (*GetUnits_Units_UnitFragment_MissileWeapons) GetID

type GetWarscrolls

type GetWarscrolls struct {
	Warscrolls []*WarscrollFragment "json:\"warscrolls\" graphql:\"warscrolls\""
}

func (*GetWarscrolls) GetWarscrolls

func (t *GetWarscrolls) GetWarscrolls() []*WarscrollFragment

type GrandAllianceFragment

type GrandAllianceFragment struct {
	ID          string  "json:\"id\" graphql:\"id\""
	Name        string  "json:\"name\" graphql:\"name\""
	Description *string "json:\"description,omitempty\" graphql:\"description\""
}

func (*GrandAllianceFragment) GetDescription

func (t *GrandAllianceFragment) GetDescription() *string

func (*GrandAllianceFragment) GetID

func (t *GrandAllianceFragment) GetID() string

func (*GrandAllianceFragment) GetName

func (t *GrandAllianceFragment) GetName() string

type Query

type Query struct {
	Allegiances    []*api.Allegiance    "json:\"allegiances\" graphql:\"allegiances\""
	GrandAlliances []*api.GrandAlliance "json:\"grandAlliances\" graphql:\"grandAlliances\""
	Units          []*api.Unit          "json:\"units\" graphql:\"units\""
	Warscrolls     []*api.Warscroll     "json:\"warscrolls\" graphql:\"warscrolls\""
}

type UnitFilters

type UnitFilters struct {
	Name          *string `json:"name,omitempty"`
	GrandAlliance *string `json:"grandAlliance,omitempty"`
	GrandStrategy *string `json:"grandStrategy,omitempty"`
	Points        *int64  `json:"points,omitempty"`
	Limit         *int64  `json:"limit,omitempty"`
	Offset        *int64  `json:"offset,omitempty"`
}

type UnitFragment

type UnitFragment struct {
	ID             string                         "json:\"id\" graphql:\"id\""
	Name           string                         "json:\"name\" graphql:\"name\""
	GrandAlliance  *string                        "json:\"grandAlliance,omitempty\" graphql:\"grandAlliance\""
	Champion       *string                        "json:\"champion,omitempty\" graphql:\"champion\""
	Size           *string                        "json:\"size,omitempty\" graphql:\"size\""
	Move           *string                        "json:\"move,omitempty\" graphql:\"move\""
	Description    *string                        "json:\"description,omitempty\" graphql:\"description\""
	Save           *int64                         "json:\"save,omitempty\" graphql:\"save\""
	Bravery        *int64                         "json:\"bravery,omitempty\" graphql:\"bravery\""
	Models         *int64                         "json:\"models,omitempty\" graphql:\"models\""
	Points         *int64                         "json:\"points,omitempty\" graphql:\"points\""
	Wounds         *int64                         "json:\"wounds,omitempty\" graphql:\"wounds\""
	Keywords       []*string                      "json:\"keywords,omitempty\" graphql:\"keywords\""
	MissileWeapons []*UnitFragment_MissileWeapons "json:\"missileWeapons,omitempty\" graphql:\"missileWeapons\""
	MeleeWeapons   []*UnitFragment_MeleeWeapons   "json:\"meleeWeapons,omitempty\" graphql:\"meleeWeapons\""
}

func (*UnitFragment) GetBravery

func (t *UnitFragment) GetBravery() *int64

func (*UnitFragment) GetChampion

func (t *UnitFragment) GetChampion() *string

func (*UnitFragment) GetDescription

func (t *UnitFragment) GetDescription() *string

func (*UnitFragment) GetGrandAlliance

func (t *UnitFragment) GetGrandAlliance() *string

func (*UnitFragment) GetID

func (t *UnitFragment) GetID() string

func (*UnitFragment) GetKeywords

func (t *UnitFragment) GetKeywords() []*string

func (*UnitFragment) GetMeleeWeapons

func (t *UnitFragment) GetMeleeWeapons() []*UnitFragment_MeleeWeapons

func (*UnitFragment) GetMissileWeapons

func (t *UnitFragment) GetMissileWeapons() []*UnitFragment_MissileWeapons

func (*UnitFragment) GetModels

func (t *UnitFragment) GetModels() *int64

func (*UnitFragment) GetMove

func (t *UnitFragment) GetMove() *string

func (*UnitFragment) GetName

func (t *UnitFragment) GetName() string

func (*UnitFragment) GetPoints

func (t *UnitFragment) GetPoints() *int64

func (*UnitFragment) GetSave

func (t *UnitFragment) GetSave() *int64

func (*UnitFragment) GetSize

func (t *UnitFragment) GetSize() *string

func (*UnitFragment) GetWounds

func (t *UnitFragment) GetWounds() *int64

type UnitFragment_MeleeWeapons

type UnitFragment_MeleeWeapons struct {
	ID string "json:\"id\" graphql:\"id\""
}

func (*UnitFragment_MeleeWeapons) GetID

func (t *UnitFragment_MeleeWeapons) GetID() string

type UnitFragment_MissileWeapons

type UnitFragment_MissileWeapons struct {
	ID string "json:\"id\" graphql:\"id\""
}

func (*UnitFragment_MissileWeapons) GetID

type WarscrollFilters

type WarscrollFilters struct {
	Name            *string `json:"name,omitempty"`
	Points          *int64  `json:"points,omitempty"`
	BattlefieldRole *string `json:"battlefieldRole,omitempty"`
	Size            *string `json:"size,omitempty"`
	Notes           *string `json:"notes,omitempty"`
	Limit           *int64  `json:"limit,omitempty"`
	Offset          *int64  `json:"offset,omitempty"`
}

type WarscrollFragment

type WarscrollFragment struct {
	ID              string  "json:\"id\" graphql:\"id\""
	Name            string  "json:\"name\" graphql:\"name\""
	AllegianceID    *string "json:\"allegianceId,omitempty\" graphql:\"allegianceId\""
	GrandAllianceID *string "json:\"grandAllianceId,omitempty\" graphql:\"grandAllianceId\""
	Size            *int64  "json:\"size,omitempty\" graphql:\"size\""
	Points          *int64  "json:\"points,omitempty\" graphql:\"points\""
	BattlefieldRole *string "json:\"battlefieldRole,omitempty\" graphql:\"battlefieldRole\""
	Notes           *string "json:\"notes,omitempty\" graphql:\"notes\""
}

func (*WarscrollFragment) GetAllegianceID

func (t *WarscrollFragment) GetAllegianceID() *string

func (*WarscrollFragment) GetBattlefieldRole

func (t *WarscrollFragment) GetBattlefieldRole() *string

func (*WarscrollFragment) GetGrandAllianceID

func (t *WarscrollFragment) GetGrandAllianceID() *string

func (*WarscrollFragment) GetID

func (t *WarscrollFragment) GetID() string

func (*WarscrollFragment) GetName

func (t *WarscrollFragment) GetName() string

func (*WarscrollFragment) GetNotes

func (t *WarscrollFragment) GetNotes() *string

func (*WarscrollFragment) GetPoints

func (t *WarscrollFragment) GetPoints() *int64

func (*WarscrollFragment) GetSize

func (t *WarscrollFragment) GetSize() *int64

Jump to

Keyboard shortcuts

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