ring

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: 4 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
	// contains filtered or unexported fields
}

Process implements the ring election algorithm

func New

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

New will create a cluster with the specified number of servers

func (*Process) Boot

func (r *Process) Boot()

Boot brings up the server and runs main process

type Setup

type Setup struct {
}

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

func (Setup) Setup

Setup links together the specified amount of ring election servers together

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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