Documentation ¶
Index ¶
- type Blackhole
- func (b *Blackhole) Close() error
- func (b *Blackhole) ForceStop()
- func (b *Blackhole) GetName() string
- func (b *Blackhole) GetPartitionIdx() int32
- func (b *Blackhole) IsFull() bool
- func (b *Blackhole) Start() <-chan struct{}
- func (b *Blackhole) Stop()
- func (b *Blackhole) Write(_ context.Context, messages []isb.Message) ([]isb.Offset, []error)
- type Option
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(vertex *dfv1.Vertex, fromBuffer isb.BufferReader, fetchWatermark fetch.Fetcher, publishWatermark map[string]publish.Publisher, whereToDecider forward.GoWhere, opts ...Option) (*Blackhole, error)
NewBlackhole returns Blackhole type.
func (*Blackhole) GetPartitionIdx ¶ added in v0.9.0
GetPartitionIdx returns the partition index. for sink it is always 0.
type Option ¶
func WithLogger ¶
func WithLogger(log *zap.SugaredLogger) Option
Click to show internal directories.
Click to hide internal directories.