stdstream

package
v0.0.0-...-31ca664 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plugin

func Plugin() plugin.Plugin

func SinkErr

func SinkErr(ctx context.Context, src iterator.Iterator, _ ...*dsl.Arg) error

func SinkOut

func SinkOut(ctx context.Context, src iterator.Iterator, _ ...*dsl.Arg) error
Example
iter := iterator.FromSlice([]entries.LogEntry{
	{"a": "a"},
	{"b": "b"},
	{"c": "c"},
})
if err := SinkOut(context.Background(), iter); err != nil {
	panic(err)
}
Output:

{"a":"a"}
{"b":"b"}
{"c":"c"}

func SourceIn

func SourceIn(ctx context.Context, _ ...*dsl.Arg) (iterator.Iterator, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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