client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(rootURL, clusterID string, n *types.Node) error

Add adds a Node to the Cluster database, updating it if it already exists.

func AddAddresses added in v0.0.2

func AddAddresses(rootURL, clusterID string, id string, epList ...*types.Address) error

AddAddresses adds a list of addresses to a node.

func Get

func Get(rootURL, clusterID string, publicKey string) (*types.Node, error)

Get returns the Node defined by the given public key, if and only if it exists within the given Cluster ID.

func List

func List(rootURL string, clusterID string) ([]*types.Node, error)

List returns the set of Nodes associated with the given Cluster ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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