pulsemanager

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package pulsemanager is responsible for all pulse operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PulseManager

type PulseManager struct {
	LogicRunner   insolar.LogicRunner `inject:""`
	NodeNet       network.NodeNetwork `inject:""` //nolint:staticcheck
	NodeSetter    node.Modifier       `inject:""`
	PulseAccessor pulse.Accessor      `inject:""`
	PulseAppender pulse.Appender      `inject:""`
	JetModifier   jet.Modifier        `inject:""`
	// contains filtered or unexported fields
}

PulseManager implements insolar.PulseManager.

func NewPulseManager

func NewPulseManager() *PulseManager

NewPulseManager creates PulseManager instance.

func (*PulseManager) AddDispatcher

func (m *PulseManager) AddDispatcher(d ...dispatcher.Dispatcher)

AddDispatcher adds dispatchers to handling that could be done only when Set is not happening

func (*PulseManager) Set

func (m *PulseManager) Set(ctx context.Context, newPulse insolar.Pulse) error

Set set's new pulse.

func (*PulseManager) Start

func (m *PulseManager) Start(ctx context.Context) error

Start starts pulse manager.

func (*PulseManager) Stop

func (m *PulseManager) Stop(ctx context.Context) error

Stop stops PulseManager.

Jump to

Keyboard shortcuts

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