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 ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.