Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Command struct { CardSubType func(childComplexity int) int CardType func(childComplexity int) int Commander func(childComplexity int) int Faction func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Image func(childComplexity int) int Keywords func(childComplexity int) int Name func(childComplexity int) int Orders func(childComplexity int) int Pips func(childComplexity int) int Requirements func(childComplexity int) int Text func(childComplexity int) int Weapon func(childComplexity int) int } Dice struct { Black func(childComplexity int) int Red func(childComplexity int) int White func(childComplexity int) int } Keyword struct { Description func(childComplexity int) int Name func(childComplexity int) int } Link struct { Name func(childComplexity int) int URL func(childComplexity int) int } LinkGroup struct { Links func(childComplexity int) int Name func(childComplexity int) int } Query struct { Command func(childComplexity int, id string) int Commands func(childComplexity int, query *string) int CommunityLinks func(childComplexity int) int Keyword func(childComplexity int, name string) int Keywords func(childComplexity int, query *string) int Unit func(childComplexity int, id string) int Units func(childComplexity int, query *string) int Upgrade func(childComplexity int, id string) int Upgrades func(childComplexity int, query *string) int } Range struct { From func(childComplexity int) int To func(childComplexity int) int } Surge struct { Attack func(childComplexity int) int Defense func(childComplexity int) int } Unit struct { CardSubType func(childComplexity int) int CardType func(childComplexity int) int CommandCards func(childComplexity int) int Cost func(childComplexity int) int Courage func(childComplexity int) int Defense func(childComplexity int) int Entourage func(childComplexity int) int Faction func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Image func(childComplexity int) int Keywords func(childComplexity int) int Name func(childComplexity int) int Rank func(childComplexity int) int Requirements func(childComplexity int) int Resilience func(childComplexity int) int Slots func(childComplexity int) int Surge func(childComplexity int) int Unique func(childComplexity int) int Weapons func(childComplexity int) int Wounds func(childComplexity int) int } Upgrade struct { CardSubType func(childComplexity int) int CardType func(childComplexity int) int Cost func(childComplexity int) int Exhaust func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Image func(childComplexity int) int Keywords func(childComplexity int) int Name func(childComplexity int) int Requirements func(childComplexity int) int Unique func(childComplexity int) int UnitTypeExclusions func(childComplexity int) int Weapon func(childComplexity int) int } Weapon struct { Dice func(childComplexity int) int Keywords func(childComplexity int) int Name func(childComplexity int) int Range func(childComplexity int) int Surge func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type QueryResolver interface { Command(ctx context.Context, id string) (*models.Command, error) Commands(ctx context.Context, query *string) ([]*models.Command, error) CommunityLinks(ctx context.Context) ([]*models.LinkGroup, error) Keyword(ctx context.Context, name string) (*models.Keyword, error) Keywords(ctx context.Context, query *string) ([]*models.Keyword, error) Unit(ctx context.Context, id string) (*models.Unit, error) Units(ctx context.Context, query *string) ([]*models.Unit, error) Upgrade(ctx context.Context, id string) (*models.Upgrade, error) Upgrades(ctx context.Context, query *string) ([]*models.Upgrade, error) }
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.