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 { Address struct { Address func(childComplexity int) int CurrencyCode func(childComplexity int) int ExplorerURL func(childComplexity int) int PrivateKey func(childComplexity int) int PublicKey func(childComplexity int) int } Currency struct { Code func(childComplexity int) int Name func(childComplexity int) int } Mutation struct { CancelSubscription func(childComplexity int, input model.CancelSubscriptionInput) int CreateSubscription func(childComplexity int, input model.CreateSubscriptionInput) int CreateTestAddress func(childComplexity int) int DeleteAddressHook func(childComplexity int, input model.DeleteHookInput) int FundTestAddress func(childComplexity int, input model.FundTestAddressInput) int } Query struct { GetSubscriptionStatus func(childComplexity int, input model.GetStatusInput) int SupportedCurrencies func(childComplexity int) int } SubscriptionStatus struct { Address func(childComplexity int) int IsSubscribed func(childComplexity int) int } Transaction struct { Amount func(childComplexity int) int ExplorerURL func(childComplexity int) int Txhash 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 { CreateTestAddress(ctx context.Context) (*model.Address, error) FundTestAddress(ctx context.Context, input model.FundTestAddressInput) (*model.Transaction, error) DeleteAddressHook(ctx context.Context, input model.DeleteHookInput) (bool, error) CreateSubscription(ctx context.Context, input model.CreateSubscriptionInput) (*model.SubscriptionStatus, error) CancelSubscription(ctx context.Context, input model.CancelSubscriptionInput) (*model.SubscriptionStatus, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.