Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphQl ¶
type GraphQl struct {
// contains filtered or unexported fields
}
GraphQl for tf graphql client
func NewGraphQl ¶
NewGraphQl creates a new tf graphql client
func (*GraphQl) GetUpNodes ¶
func (g *GraphQl) GetUpNodes(ctx context.Context, nodesNum int, farmID, excludeFarmID uint32, ipv4, ipv6 bool) ([]Node, error)
GetUpNodes returns a list of public nodes if nodesNum is given the query will use a limit and offset farmID id if not equal 0 will add a condition for it excludeFarmID if not equal 0 will add a condition ro exclude the farm ID ipv4 pool to set a condition for non empty ipv4 ipv6 pool to set a condition for non empty ipv6
type Node ¶
type Node struct { NodeID uint32 `graphql:"nodeID"` PublicConfig PublicConfig `graphql:"publicConfig"` }
Node from graphql
type PublicConfig ¶
PublicConfig includes the public config information for the node
Click to show internal directories.
Click to hide internal directories.