sink

package
v0.0.0-...-c936f35 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: 2 Imported by: 5

Documentation

Overview

Package sink provides functions to create sinks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buffered

func Buffered(bufCount int) (<-chan bar.Segments, bar.Sink)

Buffered creates a new buffered sink.

func Func

func Func(s func(bar.Segments)) bar.Sink

Func creates a bar.Sink that sends sends output in the form of Segments.

func New

func New() (<-chan bar.Segments, bar.Sink)

New creates a new sink and returns a channel that will emit any outputs sent to the sink.

func Null

func Null() bar.Sink

Null returns a sink that swallows any output sent to it.

func Value

func Value() (*value.Value, bar.Sink)

Value returns a sink that sends output to a base.Value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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