concurrentWriter

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentWriter

type ConcurrentWriter struct {
	// contains filtered or unexported fields
}

func NewConcurrentWriter

func NewConcurrentWriter(runners []WriterRunner, writer ...io.Writer) *ConcurrentWriter

func (*ConcurrentWriter) Close

func (c *ConcurrentWriter) Close() error

Close closes all pipes. It does not close the underlying writer

func (*ConcurrentWriter) GetRunners

func (c *ConcurrentWriter) GetRunners() []WriterRunner

func (*ConcurrentWriter) Write

func (c *ConcurrentWriter) Write(p []byte) (n int, err error)

type GenericCopyRunner added in v2.0.9

type GenericCopyRunner struct {
	// contains filtered or unexported fields
}

func NewGenericCopyRunner added in v2.0.9

func NewGenericCopyRunner(writer io.Writer, name string) *GenericCopyRunner

func (*GenericCopyRunner) Do added in v2.0.9

func (w *GenericCopyRunner) Do(reader io.Reader, done chan bool)

func (*GenericCopyRunner) GetError added in v2.0.9

func (w *GenericCopyRunner) GetError() error

func (*GenericCopyRunner) GetName added in v2.0.9

func (w *GenericCopyRunner) GetName() string

type WriterRunner

type WriterRunner interface {
	Do(reader io.Reader, done chan bool)
	GetName() string
}

Jump to

Keyboard shortcuts

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