Documentation ¶
Index ¶
- func DoQueryWithCheck(q string, variables map[string]interface{}, expectedRes interface{}, ...)
- func GetShips(factionId string) []interface{}
- func NewRouter() *tools.Router
- type Faction
- type IntroduceShipInput
- type IntroduceShipPayload
- type Mutation
- type MutationIntroduceShipArgs
- type Node
- type PageInfo
- type Query
- type QueryNodeArgs
- type Ship
- type ShipConnection
- type ShipEdge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoQueryWithCheck ¶
Types ¶
type Faction ¶
type Faction struct { Node `graphql:"interface"` Id string `json:"id" "graphql:id"` Name string `json:"name"` Ships ShipConnection `json:"ships"` }
func GetFaction ¶
type IntroduceShipInput ¶
type IntroduceShipPayload ¶
type Mutation ¶
type Mutation struct {
IntroduceShip IntroduceShipPayload `json:"introduceShip"`
}
func (Mutation) ArgsForIntroduceShip ¶
func (m Mutation) ArgsForIntroduceShip() MutationIntroduceShipArgs
type MutationIntroduceShipArgs ¶
type MutationIntroduceShipArgs struct {
Input *IntroduceShipInput `json:"input" graphql:"input"`
}
type Query ¶
type Query struct { Rebels Faction `json:"rebels"` Empire Faction `json:"empire"` Node Node `json:"node"` }
func (Query) ArgsForNode ¶
func (q Query) ArgsForNode() QueryNodeArgs
type QueryNodeArgs ¶
type QueryNodeArgs struct {
Id string `json:"id" graphql:"id"`
}
type ShipConnection ¶
Click to show internal directories.
Click to hide internal directories.