pipelines

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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 SignedMessagePipeline

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

SignedMessagePipeline represents the behavior of round pipeline

func Combine

func Combine(pipelines ...SignedMessagePipeline) SignedMessagePipeline

Combine is the constructor of pipelinesCombination

func CombineQuiet

CombineQuiet runs quiet and afterwards pipeline if not error returned. if quiet returns an error it will be ignored

func WrapFunc

func WrapFunc(name string, fn func(signedMessage *specqbft.SignedMessage) error) SignedMessagePipeline

WrapFunc represents the given function as a pipeline implementor

Jump to

Keyboard shortcuts

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