node

package
v0.0.0-...-2e52d37 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HTTPClientID  = "Id"
	HTTPCommandID = "Cid"
)

http request header names

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	socket.Socket
	//Database
	ID() identity.NodeID
	Run()
	Retry(r message.Transaction)
	Forward(id identity.NodeID, r message.Transaction)
	Register(m interface{}, f interface{})
	IsByz() bool
}

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

func NewNode

func NewNode(id identity.NodeID, isByz bool) 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