namedpipe

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NamedPipeProcessorComponentName is the name of the component
	// that reads from a named pipe. This is used in the health check.
	NamedPipeProcessorComponentName = "named-pipe-processor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(context.Context, string) error

type NamedPipeIngester

type NamedPipeIngester struct {
	Logger *zap.SugaredLogger
	Health *health.Health
}

func NewNamedPipeIngester

func NewNamedPipeIngester(logger *zap.SugaredLogger, h *health.Health) NamedPipeIngester

func (*NamedPipeIngester) Ingest

func (n *NamedPipeIngester) Ingest(
	ctx context.Context,
	filePath string,
	delim byte,
	callback Callback,
) error

Jump to

Keyboard shortcuts

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