consensus

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 17 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) Init

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

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.

Jump to

Keyboard shortcuts

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