generated

package
v0.0.0-...-b66c160 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 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 {
	FeatureBundle struct {
		Data    func(childComplexity int) int
		Name    func(childComplexity int) int
		OrgName func(childComplexity int) int
		Version func(childComplexity int) int
	}

	Module struct {
		Data    func(childComplexity int) int
		Name    func(childComplexity int) int
		OrgName func(childComplexity int) int
		Summary func(childComplexity int) int
		URL     func(childComplexity int) int
		Version func(childComplexity int) int
	}

	Mutation struct {
		CreateFeatureBundle func(childComplexity int, input model.NewFeatureBundle, token string) int
		CreateModule        func(childComplexity int, input model.NewModule, token string) int
		DeleteFeatureBundle func(childComplexity int, input model.FeatureBundleKey, token string) int
		DeleteModule        func(childComplexity int, input model.ModuleKey, token string) int
	}

	Query struct {
		FeatureBundlesByKey     func(childComplexity int, name *string, version *string) int
		FeatureBundlesByOrgName func(childComplexity int, orgName *string) int
		ModulesByKey            func(childComplexity int, name *string, version *string) int
		ModulesByOrgName        func(childComplexity int, orgName *string) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateModule(ctx context.Context, input model.NewModule, token string) (string, error)
	DeleteModule(ctx context.Context, input model.ModuleKey, token string) (string, error)
	CreateFeatureBundle(ctx context.Context, input model.NewFeatureBundle, token string) (string, error)
	DeleteFeatureBundle(ctx context.Context, input model.FeatureBundleKey, token string) (string, error)
}

type QueryResolver

type QueryResolver interface {
	ModulesByOrgName(ctx context.Context, orgName *string) ([]*model.Module, error)
	ModulesByKey(ctx context.Context, name *string, version *string) ([]*model.Module, error)
	FeatureBundlesByOrgName(ctx context.Context, orgName *string) ([]*model.FeatureBundle, error)
	FeatureBundlesByKey(ctx context.Context, name *string, version *string) ([]*model.FeatureBundle, error)
}

type ResolverRoot

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

Jump to

Keyboard shortcuts

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