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 { Login struct { ID func(childComplexity int) int Message func(childComplexity int) int Status func(childComplexity int) int User func(childComplexity int) int } Message struct { Author func(childComplexity int) int Content func(childComplexity int) int ID func(childComplexity int) int Ticket func(childComplexity int) int Timestamp func(childComplexity int) int } Mutation struct { CreateMessage func(childComplexity int, input model.AddMessage) int CreateTicket func(childComplexity int, input model.AddTicket) int CreateTv func(childComplexity int, input model.NewTv) int CreateUser func(childComplexity int, input model.NewUser) int UpdateTicket func(childComplexity int, id string, att string, val string) int } Query struct { Login func(childComplexity int, email string, password string) int Message func(childComplexity int, id string) int Messages func(childComplexity int) int MessagesBy func(childComplexity int, att string, val string) int Ticket func(childComplexity int, id string) int Tickets func(childComplexity int) int TicketsBy func(childComplexity int, att string, val string) int Tv func(childComplexity int, id string) int Tvs func(childComplexity int) int TvsBy func(childComplexity int, att string, val string) int User func(childComplexity int, id string) int Users func(childComplexity int) int UsersBy func(childComplexity int, att string, val string) int } Ticket struct { Description func(childComplexity int) int Equipment func(childComplexity int) int ID func(childComplexity int) int Status func(childComplexity int) int Technical func(childComplexity int) int Timestamp func(childComplexity int) int Title func(childComplexity int) int Tv func(childComplexity int) int } Tickets struct { Description func(childComplexity int) int Equipment func(childComplexity int) int ID func(childComplexity int) int Owner func(childComplexity int) int Status func(childComplexity int) int Technical func(childComplexity int) int Timestamp func(childComplexity int) int Title func(childComplexity int) int } Tv struct { Brand func(childComplexity int) int ID func(childComplexity int) int Model func(childComplexity int) int Owner func(childComplexity int) int Serial func(childComplexity int) int Type func(childComplexity int) int User func(childComplexity int) int } Tvs struct { Brand func(childComplexity int) int ID func(childComplexity int) int Model func(childComplexity int) int Owner func(childComplexity int) int Serial func(childComplexity int) int Type func(childComplexity int) int } User struct { Address func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Phone func(childComplexity int) int Role func(childComplexity int) int } UserAuth struct { Address func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Password func(childComplexity int) int Phone func(childComplexity int) int Role 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) (*model.User, error) CreateTv(ctx context.Context, input model.NewTv) (*model.Tv, error) CreateTicket(ctx context.Context, input model.AddTicket) (*model.Ticket, error) CreateMessage(ctx context.Context, input model.AddMessage) (*model.Message, error) UpdateTicket(ctx context.Context, id string, att string, val string) (*model.Ticket, error) }
type QueryResolver ¶
type QueryResolver interface { Login(ctx context.Context, email string, password string) (*model.Login, error) User(ctx context.Context, id string) (*model.User, error) Users(ctx context.Context) ([]*model.User, error) UsersBy(ctx context.Context, att string, val string) ([]*model.User, error) Tv(ctx context.Context, id string) (*model.Tv, error) Tvs(ctx context.Context) ([]*model.Tvs, error) TvsBy(ctx context.Context, att string, val string) ([]*model.Tv, error) Ticket(ctx context.Context, id string) (*model.Ticket, error) Tickets(ctx context.Context) ([]*model.Tickets, error) TicketsBy(ctx context.Context, att string, val string) ([]*model.Tickets, error) Message(ctx context.Context, id string) (*model.Message, error) Messages(ctx context.Context) ([]*model.Message, error) MessagesBy(ctx context.Context, att string, val string) ([]*model.Message, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.