generated

package
v0.0.0-...-26336ce Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 13 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 AuthAdminOpsResolver

type AuthAdminOpsResolver interface {
	Login(ctx context.Context, obj *model.AuthAdminOps, account string, password string) (interface{}, error)
	Register(ctx context.Context, obj *model.AuthAdminOps, input model.RegisterAdmin) (interface{}, error)
}

type ComplexityRoot

type ComplexityRoot struct {
	AuthAdminOps struct {
		Login    func(childComplexity int, account string, password string) int
		Register func(childComplexity int, input model.RegisterAdmin) int
	}

	Mutation struct {
		AuthAdmin func(childComplexity int) int
	}

	Post struct {
		Files   func(childComplexity int) int
		ID      func(childComplexity int) int
		Summary func(childComplexity int) int
		Title   func(childComplexity int) int
	}

	Query struct {
		AuthAdmin func(childComplexity int) int
		Posts     func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
	AuthAdmin func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
}

type MutationResolver

type MutationResolver interface {
	AuthAdmin(ctx context.Context) (*model.AuthAdminOps, error)
}

type QueryResolver

type QueryResolver interface {
	AuthAdmin(ctx context.Context) (interface{}, error)
	Posts(ctx context.Context) ([]*post.Post, error)
}

type ResolverRoot

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

Jump to

Keyboard shortcuts

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