handler

package
v0.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Bus            insolar.MessageBus
	JetCoordinator jet.Coordinator
	PCS            insolar.PlatformCryptographyScheme
	RecordAccessor object.RecordAccessor
	RecordModifier object.RecordModifier

	IndexAccessor object.IndexAccessor
	IndexModifier object.IndexModifier

	DropModifier  drop.Modifier
	PulseAccessor pulse.Accessor
	JetModifier   jet.Modifier
	JetAccessor   jet.Accessor
	JetKeeper     executor.JetKeeper
	BackupMaker   executor.BackupMaker

	Sender          bus.Sender
	StartPulse      pulse.StartPulse
	PulseCalculator pulse.Calculator
	JetTree         jet.Storage
	DropDB          *drop.DB

	Replicator executor.HeavyReplicator
	// contains filtered or unexported fields
}

Handler is a base struct for heavy's methods

func New

func New(cfg configuration.Ledger) *Handler

New creates a new handler.

func (*Handler) Init

func (h *Handler) Init(ctx context.Context) error

func (*Handler) Process

func (h *Handler) Process(msg *watermillMsg.Message) error

Jump to

Keyboard shortcuts

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