node

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyLeaderAddress is returned when leader address is empty.
	ErrEmptyLeaderAddress = errors.New("leader address is empty")
)

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node represents a server node.

func New

func New(listenAddress, leaderAddress string, isLeader bool, c cache.Cache) *Node

New creates a new Node Node.

func (*Node) Close

func (s *Node) Close() error

Close closes the Node Node.

func (*Node) Run

func (s *Node) Run() error

Run runs the Node Node.

Jump to

Keyboard shortcuts

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