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 CardResolver ¶ added in v0.1.7
type ComplexityRoot ¶
type ComplexityRoot struct { Card struct { Code func(childComplexity int) int Condition func(childComplexity int) int Currency func(childComplexity int) int Detail func(childComplexity int) int Game func(childComplexity int) int Image func(childComplexity int) int JpName func(childComplexity int) int Price func(childComplexity int) int Rarity func(childComplexity int) int Score func(childComplexity int) int Source func(childComplexity int) int } Currency struct { Code func(childComplexity int) int Decimal func(childComplexity int) int Fraction func(childComplexity int) int Grapheme func(childComplexity int) int NumericCode func(childComplexity int) int Template func(childComplexity int) int Thousand func(childComplexity int) int } DetailInfo struct { Attack func(childComplexity int) int Attribute func(childComplexity int) int CardType func(childComplexity int) int Category func(childComplexity int) int Colors func(childComplexity int) int Cost func(childComplexity int) int Counter func(childComplexity int) int Defence func(childComplexity int) int Effect func(childComplexity int) int EffectTypes func(childComplexity int) int EngName func(childComplexity int) int Level func(childComplexity int) int Life func(childComplexity int) int Link func(childComplexity int) int LinkArrows func(childComplexity int) int Pendulum func(childComplexity int) int Power func(childComplexity int) int Product func(childComplexity int) int Property func(childComplexity int) int Rarity func(childComplexity int) int Soul func(childComplexity int) int Status func(childComplexity int) int Traits func(childComplexity int) int Trigger func(childComplexity int) int Types func(childComplexity int) int } ExchangeRate struct { From func(childComplexity int) int Rate func(childComplexity int) int To func(childComplexity int) int } Game struct { Code func(childComplexity int) int Image func(childComplexity int) int Title func(childComplexity int) int } Pendulum struct { Effect func(childComplexity int) int EffectTypes func(childComplexity int) int Scale func(childComplexity int) int } Query struct { Cards func(childComplexity int, query string, game model.GameCode) int Currency func(childComplexity int, code string) int ExchangeRate func(childComplexity int, base string, to string) int ExchangeRates func(childComplexity int) int Games 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 { Cards(ctx context.Context, query string, game model.GameCode) ([]*model.Card, error) Currency(ctx context.Context, code string) (*model.Currency, error) ExchangeRate(ctx context.Context, base string, to string) (*model.ExchangeRate, error) ExchangeRates(ctx context.Context) ([]*model.ExchangeRate, error) Games(ctx context.Context) ([]*model.Game, error) }
type ResolverRoot ¶
type ResolverRoot interface { Card() CardResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.