generated

package
v0.0.0-...-a9f1957 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT 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 {
	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 QueryResolver interface {
	SupportedCurrencies(ctx context.Context) ([]*model.Currency, error)
	GetSubscriptionStatus(ctx context.Context, input model.GetStatusInput) (*model.SubscriptionStatus, 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