node

package
v0.0.0-...-6206b6d Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	net.Communication
	db.Database
	ID() idservice.ID
	Run()
	Retry(r net.Request)
	Forward(id idservice.ID, r net.Request)
	Register(m interface{}, f interface{})
	HandleMsg(m interface{})
}

Node is the primary access point for every replica it includes networking, state machine and RESTful API server

func NewNode

func NewNode(id idservice.ID) Node

NewNode creates a new Node object from configuration

Jump to

Keyboard shortcuts

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