pnetclient

package
v0.0.0-...-1a6bc1e Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Dial

func Dial(node globals.Node) (*grpc.ClientConn, error)

func Distribute

func Distribute(key *keyman.Key, peers []globals.Node, generation int) error

Chunks key and sends the pieces to other nodes on the network.

func JoinCluster

func JoinCluster(password string) error

JoinCluster is used to request to join a raft cluster

func KSMObserver

func KSMObserver(ksm *keyman.KeyStateMachine)

func NewGeneration

func NewGeneration(password string) (generation int64, peers []string, err error)

NewGeneration is used to create a new KeyPair generation in the cluster, prior to this node joining.

func Ping

func Ping()

func RequestKeyPiece

func RequestKeyPiece(uuid string, generation int64) (*keyman.KeyPiece, error)

func SendKeyPiece

func SendKeyPiece(uuid string, generation int64, piece *keyman.KeyPiece, addElement bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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