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 { ChannelFee struct { Base func(childComplexity int) int PerMSat func(childComplexity int) int } ChannelInfoOutput struct { Age func(childComplexity int) int Alias func(childComplexity int) int Capacity func(childComplexity int) int ChannelID func(childComplexity int) int Direction func(childComplexity int) int Fee func(childComplexity int) int ForwardsRating func(childComplexity int) int Limits func(childComplexity int) int NodeID func(childComplexity int) int UpTime func(childComplexity int) int } ChannelLimits struct { Max func(childComplexity int) int Min func(childComplexity int) int } ChannelStatus struct { Event func(childComplexity int) int Status func(childComplexity int) int Timestamp func(childComplexity int) int } ChannelSummary struct { Alias func(childComplexity int) int ChannelID func(childComplexity int) int Color func(childComplexity int) int NodeID func(childComplexity int) int State func(childComplexity int) int } ChannelsSummary struct { Summary func(childComplexity int) int TotChannels func(childComplexity int) int } ForwardsRating struct { Failure func(childComplexity int) int InternalFailure func(childComplexity int) int LocalFailure func(childComplexity int) int Success func(childComplexity int) int } ForwardsRatingSummary struct { Full func(childComplexity int) int OneDay func(childComplexity int) int SixMonths func(childComplexity int) int TenDays func(childComplexity int) int ThirtyDays func(childComplexity int) int } MetricOne struct { Address func(childComplexity int) int ChannelsInfo func(childComplexity int) int Color func(childComplexity int) int Name func(childComplexity int) int Network func(childComplexity int) int NodeAlias func(childComplexity int) int NodeID func(childComplexity int) int NodeInfo func(childComplexity int) int OSInfo func(childComplexity int) int Timezone func(childComplexity int) int UpTime func(childComplexity int) int Version func(childComplexity int) int } MetricOneInfo struct { ChannelsInfo func(childComplexity int) int PageInfo func(childComplexity int) int UpTime func(childComplexity int) int } MetricOneOutput struct { Age func(childComplexity int) int ChannelsInfo func(childComplexity int) int ForwardsRating func(childComplexity int) int LastUpdate func(childComplexity int) int UpTime func(childComplexity int) int Version func(childComplexity int) int } Mutation struct { InitMetricOne func(childComplexity int, nodeID string, payload string, signature string) int UpdateMetricOne func(childComplexity int, nodeID string, payload string, signature string) int } NodeAddress struct { Host func(childComplexity int) int Port func(childComplexity int) int Type func(childComplexity int) int } NodeImpInfo struct { Implementation func(childComplexity int) int Version func(childComplexity int) int } NodeInfo struct { MetricOne func(childComplexity int) int NodeID func(childComplexity int) int } NodeMetadata struct { Address func(childComplexity int) int Alias func(childComplexity int) int Color func(childComplexity int) int LastUpdate func(childComplexity int) int Network func(childComplexity int) int NodeID func(childComplexity int) int NodeInfo func(childComplexity int) int OSInfo func(childComplexity int) int Timezone func(childComplexity int) int Version func(childComplexity int) int } NodeMetric struct { ChannelsInfo func(childComplexity int) int Timestamp func(childComplexity int) int UpTime func(childComplexity int) int } OSInfo struct { Architecture func(childComplexity int) int Os func(childComplexity int) int Version func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNext func(childComplexity int) int StartCursor func(childComplexity int) int } PaymentInfo struct { Direction func(childComplexity int) int FailureCode func(childComplexity int) int FailureReason func(childComplexity int) int Status func(childComplexity int) int Timestamp func(childComplexity int) int } PaymentsSummary struct { Completed func(childComplexity int) int Failed func(childComplexity int) int } Query struct { GetMetricOne func(childComplexity int, network string, nodeID string, startPeriod int, endPeriod int) int GetMetricOneResult func(childComplexity int, network string, nodeID string) int GetNode func(childComplexity int, network string, nodeID string) int GetNodes func(childComplexity int, network string) int MetricOne func(childComplexity int, network string, nodeID string, first int, last *int) int } Status struct { Channels func(childComplexity int) int Event func(childComplexity int) int Fee func(childComplexity int) int Forwards func(childComplexity int) int Limits func(childComplexity int) int Timestamp func(childComplexity int) int } StatusChannel struct { Capacity func(childComplexity int) int ChannelID func(childComplexity int) int Color func(childComplexity int) int Direction func(childComplexity int) int Fee func(childComplexity int) int Forwards func(childComplexity int) int LastUpdate func(childComplexity int) int Limits func(childComplexity int) int NodeAlias func(childComplexity int) int NodeID func(childComplexity int) int Online func(childComplexity int) int UpTime func(childComplexity int) int } UpTimeOutput struct { Full func(childComplexity int) int OneDay func(childComplexity int) int SixMonths func(childComplexity int) int TenDays func(childComplexity int) int ThirtyDays 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 { GetNodes(ctx context.Context, network string) ([]*model.NodeMetadata, error) GetNode(ctx context.Context, network string, nodeID string) (*model.NodeMetadata, error) GetMetricOne(ctx context.Context, network string, nodeID string, startPeriod int, endPeriod int) (*model.MetricOne, error) GetMetricOneResult(ctx context.Context, network string, nodeID string) (*model.MetricOneOutput, error) MetricOne(ctx context.Context, network string, nodeID string, first int, last *int) (*model.MetricOneInfo, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.