gql

package
v0.0.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: Apache-2.0 Imports: 12 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 {
	Chaincode struct {
		Name     func(childComplexity int) int
		Sequence func(childComplexity int) int
		Version  func(childComplexity int) int
	}

	DeployChaincodeResponse struct {
		Certificate     func(childComplexity int) int
		ChaincodeName   func(childComplexity int) int
		ChannelName     func(childComplexity int) int
		PackageID       func(childComplexity int) int
		PrivateKey      func(childComplexity int) int
		RootCertificate func(childComplexity int) int
		Sequence        func(childComplexity int) int
		Version         func(childComplexity int) int
	}

	InvokeChaincodeResponse struct {
		ChaincodeStatus func(childComplexity int) int
		Response        func(childComplexity int) int
		TransactionID   func(childComplexity int) int
	}

	Mutation struct {
		DeployChaincode func(childComplexity int, input models.DeployChaincodeInput) int
		InvokeChaincode func(childComplexity int, input models.InvokeChaincodeInput) int
		QueryChaincode  func(childComplexity int, input models.QueryChaincodeInput) int
	}

	Query struct {
		Chaincodes func(childComplexity int) int
	}

	QueryChaincodeResponse struct {
		ChaincodeStatus func(childComplexity int) int
		Response        func(childComplexity int) int
	}

	Tenant struct {
		ID    func(childComplexity int) int
		MspID func(childComplexity int) int
		Name  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 {
	DeployChaincode(ctx context.Context, input models.DeployChaincodeInput) (*models.DeployChaincodeResponse, error)
	InvokeChaincode(ctx context.Context, input models.InvokeChaincodeInput) (*models.InvokeChaincodeResponse, error)
	QueryChaincode(ctx context.Context, input models.QueryChaincodeInput) (*models.QueryChaincodeResponse, error)
}

type QueryResolver

type QueryResolver interface {
	Chaincodes(ctx context.Context) ([]*models.Chaincode, error)
}

type ResolverRoot

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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