Documentation ¶
Index ¶
- Constants
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- func Server(baseApp *bam.BaseApp, cdc *codec.Codec, keeper registry.Keeper, ...)
- type Account
- type AccountResolver
- type BigUInt
- type Bot
- type Coin
- type CoinResolver
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type KeyValue
- type KeyValueInput
- type MutationResolver
- type QueryResolver
- type Record
- type Resolver
- type ResolverRoot
- type Value
- type ValueInput
Constants ¶
View Source
const WireRegistryTypeBot = "wrn:registry-type:bot"
WireRegistryTypeBot => Bot.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type AccountResolver ¶
type CoinResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Account struct { Address func(childComplexity int) int PubKey func(childComplexity int) int Number func(childComplexity int) int Sequence func(childComplexity int) int Balance func(childComplexity int) int } Bot struct { Record func(childComplexity int) int Name func(childComplexity int) int AccessKey func(childComplexity int) int } Coin struct { Type func(childComplexity int) int Amount func(childComplexity int) int } KeyValue struct { Key func(childComplexity int) int Value func(childComplexity int) int } Mutation struct { Submit func(childComplexity int, tx string) int } Query struct { GetAccounts func(childComplexity int, addresses []string) int GetRecordsByIds func(childComplexity int, ids []string) int GetRecordsByAttributes func(childComplexity int, attributes []*KeyValueInput) int GetBotsByAttributes func(childComplexity int, attributes []*KeyValueInput) int } Record struct { ID func(childComplexity int) int Type func(childComplexity int) int Owner func(childComplexity int) int Attributes func(childComplexity int) int } Value struct { Null func(childComplexity int) int Int func(childComplexity int) int Float func(childComplexity int) int String func(childComplexity int) int Boolean func(childComplexity int) int Values func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type KeyValueInput ¶
type KeyValueInput struct { Key string `json:"key"` Value ValueInput `json:"value"` }
type MutationResolver ¶
type QueryResolver ¶
type QueryResolver interface { GetAccounts(ctx context.Context, addresses []string) ([]*Account, error) GetRecordsByIds(ctx context.Context, ids []string) ([]*Record, error) GetRecordsByAttributes(ctx context.Context, attributes []*KeyValueInput) ([]*Record, error) GetBotsByAttributes(ctx context.Context, attributes []*KeyValueInput) ([]*Bot, error) }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is the GQL query resolver.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation is the entry point to tx execution.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query is the entry point to query execution.
type ResolverRoot ¶
type ResolverRoot interface { Account() AccountResolver Coin() CoinResolver Mutation() MutationResolver Query() QueryResolver }
type ValueInput ¶
Click to show internal directories.
Click to hide internal directories.