datasink

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFile

func NewFile(fs afero.Fs, conf FileConfig) core.DataSink

func NewStderr

func NewStderr() core.DataSink

func NewStdout

func NewStdout() core.DataSink

Types

type Buffer

type Buffer struct {
	bytes.Buffer
	ioutil2.NopCloser
}

func NewBuffer

func NewBuffer() *Buffer

func (*Buffer) OpenSink

func (b *Buffer) OpenSink() (wc io.WriteCloser, err error)

type FileConfig

type FileConfig struct {
	Path string `config:"path" validate:"required"`
}

Jump to

Keyboard shortcuts

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