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 { AcceptedOrderResult struct { IsNew func(childComplexity int) int Order func(childComplexity int) int } AddOrdersResults struct { Accepted func(childComplexity int) int Rejected func(childComplexity int) int } ContractEvent struct { Address func(childComplexity int) int BlockHash func(childComplexity int) int IsRemoved func(childComplexity int) int Kind func(childComplexity int) int LogIndex func(childComplexity int) int Parameters func(childComplexity int) int TxHash func(childComplexity int) int TxIndex func(childComplexity int) int } LatestBlock struct { Hash func(childComplexity int) int Number func(childComplexity int) int } Mutation struct { AddOrders func(childComplexity int, orders []*gqltypes.NewOrder, pinned *bool) int } Order struct { ChainID func(childComplexity int) int ExchangeAddress func(childComplexity int) int ExpirationTimeSeconds func(childComplexity int) int FeeRecipientAddress func(childComplexity int) int MakerAddress func(childComplexity int) int MakerAssetAmount func(childComplexity int) int MakerAssetData func(childComplexity int) int MakerFee func(childComplexity int) int MakerFeeAssetData func(childComplexity int) int Salt func(childComplexity int) int SenderAddress func(childComplexity int) int Signature func(childComplexity int) int TakerAddress func(childComplexity int) int TakerAssetAmount func(childComplexity int) int TakerAssetData func(childComplexity int) int TakerFee func(childComplexity int) int TakerFeeAssetData func(childComplexity int) int } OrderEvent struct { ContractEvents func(childComplexity int) int EndState func(childComplexity int) int Order func(childComplexity int) int Timestamp func(childComplexity int) int } OrderWithMetadata struct { ChainID func(childComplexity int) int ExchangeAddress func(childComplexity int) int ExpirationTimeSeconds func(childComplexity int) int FeeRecipientAddress func(childComplexity int) int FillableTakerAssetAmount func(childComplexity int) int Hash func(childComplexity int) int MakerAddress func(childComplexity int) int MakerAssetAmount func(childComplexity int) int MakerAssetData func(childComplexity int) int MakerFee func(childComplexity int) int MakerFeeAssetData func(childComplexity int) int Salt func(childComplexity int) int SenderAddress func(childComplexity int) int Signature func(childComplexity int) int TakerAddress func(childComplexity int) int TakerAssetAmount func(childComplexity int) int TakerAssetData func(childComplexity int) int TakerFee func(childComplexity int) int TakerFeeAssetData func(childComplexity int) int } Query struct { Order func(childComplexity int, hash string) int Orders func(childComplexity int, sort []*gqltypes.OrderSort, filters []*gqltypes.OrderFilter, limit *int) int Stats func(childComplexity int) int } RejectedOrderResult struct { Code func(childComplexity int) int Hash func(childComplexity int) int Message func(childComplexity int) int Order func(childComplexity int) int } Stats struct { EthRPCRateLimitExpiredRequests func(childComplexity int) int EthRPCRequestsSentInCurrentUTCDay func(childComplexity int) int EthereumChainID func(childComplexity int) int LatestBlock func(childComplexity int) int MaxExpirationTime func(childComplexity int) int NumOrders func(childComplexity int) int NumOrdersIncludingRemoved func(childComplexity int) int NumPeers func(childComplexity int) int PeerID func(childComplexity int) int PubSubTopic func(childComplexity int) int Rendezvous func(childComplexity int) int SecondaryRendezvous func(childComplexity int) int StartOfCurrentUTCDay func(childComplexity int) int Version func(childComplexity int) int } Subscription struct { OrderEvents func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type QueryResolver interface { Order(ctx context.Context, hash string) (*gqltypes.OrderWithMetadata, error) Orders(ctx context.Context, sort []*gqltypes.OrderSort, filters []*gqltypes.OrderFilter, limit *int) ([]*gqltypes.OrderWithMetadata, error) Stats(ctx context.Context) (*gqltypes.Stats, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver Subscription() SubscriptionResolver }
type SubscriptionResolver ¶
type SubscriptionResolver interface {
OrderEvents(ctx context.Context) (<-chan []*gqltypes.OrderEvent, error)
}
Click to show internal directories.
Click to hide internal directories.