cascade

package
v0.7.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0, BSD-3-Clause-Clear Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateNextNodes

func CalculateNextNodes(scheme core.PlatformCryptographyScheme, data core.Cascade, currentNode *core.RecordRef) (nextNodeIds []core.RecordRef, err error)

CalculateNextNodes get nodes of the next cascade layer from the input nodes slice

Types

type Cascade

type Cascade struct {
	SendMessage func(data core.Cascade, method string, args [][]byte) error
}

Cascade is struct to hold callback that sends cascade messages to next layers of cascade

func (*Cascade) SendToNextLayer

func (casc *Cascade) SendToNextLayer(data core.Cascade, method string, args [][]byte) error

SendToNextLayer sends data to callback.

Jump to

Keyboard shortcuts

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