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 { AscensionMaterial struct { Concepts func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int Rarity func(childComplexity int) int Story func(childComplexity int) int Type func(childComplexity int) int } AscensionMaterialWithQuantity struct { Material func(childComplexity int) int Quantity func(childComplexity int) int } AscensionMaterials struct { Material func(childComplexity int) int Quantity func(childComplexity int) int } Character struct { CombatType func(childComplexity int) int Eidolons func(childComplexity int) int Faction func(childComplexity int) int ID func(childComplexity int) int Images func(childComplexity int) int Name func(childComplexity int) int Path func(childComplexity int) int Rarity func(childComplexity int) int Stats func(childComplexity int) int Story func(childComplexity int) int } Eidolon struct { Description func(childComplexity int) int Image func(childComplexity int) int Index func(childComplexity int) int Logo func(childComplexity int) int Title func(childComplexity int) int } Images struct { Profile func(childComplexity int) int Splash func(childComplexity int) int Transparent func(childComplexity int) int } LightCone struct { AscensionMaterials func(childComplexity int) int Concepts func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Icon func(childComplexity int) int LargeIcon func(childComplexity int) int Path func(childComplexity int) int Rarity func(childComplexity int) int Skill func(childComplexity int) int SkillName func(childComplexity int) int Story func(childComplexity int) int } Material struct { Description func(childComplexity int) int Name func(childComplexity int) int Rarity func(childComplexity int) int Story func(childComplexity int) int Type func(childComplexity int) int } Mutation struct { AddCharacter func(childComplexity int, input *model.CharacterInput) int Hello func(childComplexity int) int } Query struct { Character func(childComplexity int, id int) int Characters func(childComplexity int) int LightCone func(childComplexity int, id int) int LightCones func(childComplexity int) int Relic func(childComplexity int, id int) int Relics func(childComplexity int) int } Relic struct { Body func(childComplexity int) int Concepts func(childComplexity int) int Feet func(childComplexity int) int Hands func(childComplexity int) int Head func(childComplexity int) int ID func(childComplexity int) int Image func(childComplexity int) int LinkRope func(childComplexity int) int PlanarSphere func(childComplexity int) int SetEffect func(childComplexity int) int Type func(childComplexity int) int } RelicSet struct { Concepts func(childComplexity int) int Description func(childComplexity int) int Image func(childComplexity int) int Story func(childComplexity int) int Type func(childComplexity int) int } StatItem struct { AscensionMaterials func(childComplexity int) int Atk func(childComplexity int) int CritDamage func(childComplexity int) int CritRate func(childComplexity int) int Def func(childComplexity int) int Enengy func(childComplexity int) int Hp func(childComplexity int) int Level func(childComplexity int) int Spd func(childComplexity int) int Taunt func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type QueryResolver interface { Character(ctx context.Context, id int) (*model.Character, error) Characters(ctx context.Context) ([]*model.Character, error) Relic(ctx context.Context, id int) (*model.Relic, error) Relics(ctx context.Context) ([]*model.Relic, error) LightCone(ctx context.Context, id int) (*model.LightCone, error) LightCones(ctx context.Context) ([]*model.LightCone, error) }
type Resolver ¶
type Resolver struct{}
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.