generated

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 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 {
	CertificateRequestResponse struct {
		Certificate func(childComplexity int) int
		ID          func(childComplexity int) int
	}

	CertificateResponse struct {
		Certificate func(childComplexity int) int
		Expiry      func(childComplexity int) int
		Key         func(childComplexity int) int
	}

	Mutation struct {
		RequestCertificate         func(childComplexity int, input model.EnrollCertificateRequest) int
		RequestCertificateUsingCsr func(childComplexity int, input model.CSREnrollCertificateRequest) int
		Signup                     func(childComplexity int, input model.SignupRequest) int
	}

	PolicyValues struct {
		CommonName         func(childComplexity int) int
		Country            func(childComplexity int) int
		Locality           func(childComplexity int) int
		Organization       func(childComplexity int) int
		OrganizationalUnit func(childComplexity int) int
		Province           func(childComplexity int) int
	}

	Query struct {
		Certificate func(childComplexity int, input model.CertificateRequest) int
		Zone        func(childComplexity int, input model.ZoneRequest) int
	}

	SignupResponse struct {
		JwtToken func(childComplexity int) int
	}

	ZoneResponse struct {
		PolicyConfiguration func(childComplexity int) int
		Zone                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 {
	RequestCertificateUsingCsr(ctx context.Context, input model.CSREnrollCertificateRequest) (*model.CertificateRequestResponse, error)
	RequestCertificate(ctx context.Context, input model.EnrollCertificateRequest) (*model.CertificateRequestResponse, error)
	Signup(ctx context.Context, input model.SignupRequest) (*model.SignupResponse, error)
}

type QueryResolver

type QueryResolver interface {
	Certificate(ctx context.Context, input model.CertificateRequest) (*model.CertificateResponse, error)
	Zone(ctx context.Context, input model.ZoneRequest) (*model.ZoneResponse, 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