generated

package
v0.0.0-...-62d8223 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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 QueryResolver interface {
	Servers(ctx context.Context, zone string) ([]*model.Server, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
	Server() ServerResolver
}

type ServerResolver

type ServerResolver interface {
	Disks(ctx context.Context, obj *model.Server) ([]*model.Disk, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL