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 { MapVote struct { Maps func(childComplexity int) int Status func(childComplexity int) int } Mutation struct { CancelMatch func(childComplexity int) int CancelQueue func(childComplexity int, teamspeakID string) int CreateMatch func(childComplexity int) int CreateUser func(childComplexity int, input model.NewUser) int DeleteUser func(childComplexity int, id int) int FinishMatch func(childComplexity int, winner string) int StartQueue func(childComplexity int, teamspeakID string) int UpdateUser func(childComplexity int, id int, input model.UserInput) int VetoMap func(childComplexity int, mapArg *string) int } Query struct { GetTeams func(childComplexity int, id *int) int UserBySteam func(childComplexity int, steamID string) int UserByTs func(childComplexity int, teamspeakID string) int } Teams struct { Captain1 func(childComplexity int) int Captain2 func(childComplexity int) int Team1 func(childComplexity int) int Team2 func(childComplexity int) int } User struct { Admin func(childComplexity int) int Avatar func(childComplexity int) int Elo func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int SteamID func(childComplexity int) int TeamspeakID func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { CreateUser(ctx context.Context, input model.NewUser) (string, error) DeleteUser(ctx context.Context, id int) (string, error) UpdateUser(ctx context.Context, id int, input model.UserInput) (*model.User, error) StartQueue(ctx context.Context, teamspeakID string) (int, error) CancelQueue(ctx context.Context, teamspeakID string) (int, error) CreateMatch(ctx context.Context) (int, error) CancelMatch(ctx context.Context) (string, error) FinishMatch(ctx context.Context, winner string) (string, error) VetoMap(ctx context.Context, mapArg *string) (*model.MapVote, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.