blackhole

package
v1.2.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blackhole

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

Blackhole is a sink to emulate /dev/null

func NewBlackhole

func NewBlackhole(ctx context.Context, vertexInstance *dfv1.VertexInstance) (*Blackhole, error)

NewBlackhole returns a new Blackhole sink.

func (*Blackhole) Close

func (b *Blackhole) Close() error

func (*Blackhole) GetName

func (b *Blackhole) GetName() string

GetName returns the name.

func (*Blackhole) GetPartitionIdx added in v0.9.0

func (b *Blackhole) GetPartitionIdx() int32

GetPartitionIdx returns the partition index. for sink it is always 0.

func (*Blackhole) IsFull

func (b *Blackhole) IsFull() bool

IsFull returns whether sink is full, which is never true.

func (*Blackhole) Write

func (b *Blackhole) Write(_ context.Context, messages []isb.Message) ([]isb.Offset, []error)

Write writes to the blackhole.

Jump to

Keyboard shortcuts

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