jetcoordinator

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package jetcoordinator is responsible for all jet manipulations.

Package responsible for jet drops, split/merge jets, choose of validators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JetCoordinator

type JetCoordinator struct {
	// contains filtered or unexported fields
}

JetCoordinator is responsible for all jet interactions

func NewJetCoordinator added in v0.0.5

func NewJetCoordinator(db *storage.DB) (*JetCoordinator, error)

NewJetCoordinator creates new coordinator instance.

func (*JetCoordinator) Pulse

func (jc *JetCoordinator) Pulse(new record.PulseNum) (*jetdrop.JetDrop, error)

Pulse creates new jet drop and ends current slot. This should be called when receiving a new pulse from pulsar.

Jump to

Keyboard shortcuts

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