noop

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

type Sink[K, V any] struct {
	// contains filtered or unexported fields
}

Sink is a noop sink.

func NewSink

func NewSink[K, V any]() *Sink[K, V]

NewSink is a noop sink constructor.

func (*Sink[K, V]) Write

func (n *Sink[K, V]) Write(messages ...msg.Message[K, V]) error

Write is a noop sink writer.

type Source

type Source[K, V any] struct {
	// contains filtered or unexported fields
}

Source ...

func NewSource

func NewSource[K, V any](buf []msg.Message[K, V]) *Source[K, V]

NewSource is a noop source constructor.

func (*Source[K, V]) Close

func (n *Source[K, V]) Close()

Close is a noop source closer.

func (*Source[K, V]) Commit

func (n *Source[K, V]) Commit(messages ...msg.Message[K, V]) error

Commit is a noop source commit.

func (*Source[K, V]) Error added in v0.2.0

func (n *Source[K, V]) Error() error

Error is a noop source error.

func (*Source[K, V]) Messages

func (n *Source[K, V]) Messages() chan msg.Message[K, V]

Messages is returning a channel of messages.

Jump to

Keyboard shortcuts

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