fullstatepipe

package
v0.0.0-...-edb81cd Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// Sequence calls to each pipe stage in sequence. Implies storing the state in a buffer.
	Sequence = iota
	// Parallel calls each pipe stage in parallel. No buffering required, but
	// the stages are not really stages anymore.
	Parallel
	// ParallelSendSequenceClose calls each pipe entry in parallel but closes
	// the channel of a stage only after the previous has finished. No
	// buffering required but still a meaningful sequencing, especially when
	// using the diffstore.
	ParallelSendSequenceClose
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipe

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

func New

func New(strategy Strategy, stages ...fullstate.Callback) *Pipe

func (*Pipe) Callback

func (pipe *Pipe) Callback(ch <-chan *client.ServiceEndpoints)

type Strategy

type Strategy int

Jump to

Keyboard shortcuts

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