consensus

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Synchronizer

type Synchronizer struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Synchronizer controls logic hand off between services This system coordinates what services may run under what conditions The system operates as a scheduler as well as a reactor to external events

func (*Synchronizer) CloseChan

func (s *Synchronizer) CloseChan() <-chan struct{}

func (*Synchronizer) GossipInLoop

func (s *Synchronizer) GossipInLoop()

func (*Synchronizer) Init

func (s *Synchronizer) Init(cdb *db.Database, mdb *badger.DB, tdb *badger.DB, gc *gossip.Client, gh *gossip.Handlers, ep *evidence.Pool, eng *lstate.Engine, app *application.Application, ah *admin.Handlers, pman *peering.PeerManager) error

Init initializes the struct

func (*Synchronizer) Safe

func (s *Synchronizer) Safe() bool

func (*Synchronizer) Start

func (s *Synchronizer) Start()

Start will start the Synchronizer

func (*Synchronizer) Stop

func (s *Synchronizer) Stop()

Stop terminates the Synchronizer and all managed services

Directories

Path Synopsis
Package mock_db is a generated GoMock package.
Package mock_db is a generated GoMock package.

Jump to

Keyboard shortcuts

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