graphql

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func NewGraphQl(urls ...string) (GraphQl, error)

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

type PublicConfig struct {
	Ipv4 string `graphql:"ipv4"`
	Ipv6 string `graphql:"ipv6"`
}

PublicConfig includes the public config information for the node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL