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 { Disk struct { Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Size func(childComplexity int) int Tags func(childComplexity int) int } Mutation struct { ShutdownServer func(childComplexity int, zone string, id int64, option *model.ShutdownOption) int } MutationResult struct { Success func(childComplexity int) int } Query struct { Servers func(childComplexity int, zone string) int } Server struct { Availability func(childComplexity int) int CPU func(childComplexity int) int Commitment func(childComplexity int) int Description func(childComplexity int) int Disks func(childComplexity int) int HostName func(childComplexity int) int ID func(childComplexity int) int InstanceHostName func(childComplexity int) int InstanceStatus func(childComplexity int) int InterfaceDriver func(childComplexity int) int Memory func(childComplexity int) int Name func(childComplexity int) int PlanGeneration func(childComplexity int) int PlanID func(childComplexity int) int PlanName func(childComplexity int) int Tags 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 {
ShutdownServer(ctx context.Context, zone string, id int64, option *model.ShutdownOption) (*model.MutationResult, error)
}
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Server() ServerResolver }
Click to show internal directories.
Click to hide internal directories.