noop

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.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 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 ...

func (*Source[K, V]) Close

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

Close ...

func (*Source[K, V]) Commit

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

Commit ...

func (*Source[K, V]) Messages

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

Message ...

Jump to

Keyboard shortcuts

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