Documentation ¶
Overview ¶
Package jetcoordinator is responsible for all jet manipulations.
Package responsible for jet drops, split/merge jets, choose of validators.
Index ¶
- type JetCoordinator
- func (jc *JetCoordinator) GetActiveNodes(pulse core.PulseNumber) ([]core.Node, error)
- func (jc *JetCoordinator) IsAuthorized(ctx context.Context, role core.DynamicRole, obj *core.RecordRef, ...) (bool, error)
- func (jc *JetCoordinator) QueryRole(ctx context.Context, role core.DynamicRole, obj *core.RecordRef, ...) ([]core.RecordRef, error)
- type JetNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JetCoordinator ¶
type JetCoordinator struct { NodeNet core.NodeNetwork `inject:""` PlatformCryptographyScheme core.PlatformCryptographyScheme `inject:""` // 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
NewJetCoordinator creates new coordinator instance.
func (*JetCoordinator) GetActiveNodes ¶ added in v0.6.3
func (jc *JetCoordinator) GetActiveNodes(pulse core.PulseNumber) ([]core.Node, error)
GetActiveNodes return active nodes for specified pulse.
func (*JetCoordinator) IsAuthorized ¶ added in v0.2.0
func (jc *JetCoordinator) IsAuthorized( ctx context.Context, role core.DynamicRole, obj *core.RecordRef, pulse core.PulseNumber, node core.RecordRef, ) (bool, error)
IsAuthorized checks for role on concrete pulse for the address.
func (*JetCoordinator) QueryRole ¶ added in v0.2.0
func (jc *JetCoordinator) QueryRole( ctx context.Context, role core.DynamicRole, obj *core.RecordRef, pulse core.PulseNumber, ) ([]core.RecordRef, error)
QueryRole returns node refs responsible for role bound operations for given object and pulse.
Click to show internal directories.
Click to hide internal directories.