bully

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

type Process struct {
	server.Base
	NeighborServers map[string]*Process
	// contains filtered or unexported fields
}

Process extends Base to implement the bully algorithm

func New

func New(e *communication.Emitter, heartbeatPause time.Duration) *Process

New will create a new instance of a bully server

func (*Process) Boot

func (b *Process) Boot()

Boot brings up the server and runs main process. This function blocks while the process is active

type Setup

type Setup struct {
}

Setup is used in the cluster to create an array of servers of the bully type

func (Setup) Setup

Setup links together and creates the specified amount of bully election servers together

Jump to

Keyboard shortcuts

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