pipeline

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline interface {
	// Run runs the pipeline
	Run(signedMessage *proto.SignedMessage) error
	Name() string
}

Pipeline represents the behavior of round pipeline

func Combine

func Combine(pipelines ...Pipeline) Pipeline

Combine is the constructor of pipelinesCombination

func IfFirstTrueContinueToSecond added in v0.1.2

func IfFirstTrueContinueToSecond(a, b Pipeline) Pipeline

IfFirstTrueContinueToSecond runs pipeline a, if returns no error continues to pipeline b. otherwise returns without an error

func WrapFunc

func WrapFunc(name string, fn func(signedMessage *proto.SignedMessage) error) Pipeline

WrapFunc represents the given function as a pipeline implementor

type SetStage

type SetStage func(stage proto.RoundState)

SetStage sets the given stage

type SignAndBroadcast

type SignAndBroadcast func(msg *proto.Message) error

SignAndBroadcast is the function to sign and broadcast message

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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