package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jul 11, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Add(rootURL, clusterID string, n *types.Node) error
-
func AddAddresses(rootURL, clusterID string, id string, epList ...*types.Address) error
-
func Get(rootURL, clusterID string, publicKey string) (*types.Node, error)
-
func List(rootURL string, clusterID string) ([]*types.Node, error)
Add adds a Node to the Cluster database, updating it if it already exists.
AddAddresses adds a list of addresses to a node.
Get returns the Node defined by the given public key, if and only if it exists within the given Cluster ID.
List returns the set of Nodes associated with the given Cluster ID.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.