jetcoordinator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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, conf configuration.JetCoordinator) (*JetCoordinator, error)

NewJetCoordinator creates new coordinator instance.

func (*JetCoordinator) IsAuthorized added in v0.2.0

func (jc *JetCoordinator) IsAuthorized(
	role core.JetRole, obj core.RecordRef, pulse core.PulseNumber, node core.RecordRef,
) (bool, error)

IsAuthorized checks for role on concrete pulse for the address.

func (jc *JetCoordinator) Link(components core.Components) error

func (*JetCoordinator) QueryRole added in v0.2.0

func (jc *JetCoordinator) QueryRole(
	role core.JetRole, obj core.RecordRef, pulse core.PulseNumber,
) ([]core.RecordRef, error)

QueryRole returns node refs responsible for role bound operations for given object and pulse.

type JetNode added in v0.2.0

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

JetNode represents node in Jet tree.

func (*JetNode) GetContaining added in v0.2.0

func (jn *JetNode) GetContaining(objRef *core.RecordRef) *core.RecordRef

GetContaining returns leaf node reference. Leaf node is a jet host for provided objRef.

Jump to

Keyboard shortcuts

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