stdin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Receives flows from stdin in JSON format, as exported by the json segment. This segment can also read from a file with flows in json format per each line

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StdIn

type StdIn struct {
	segments.BaseSegment

	FileName  string // optional, default is empty which means read from stdin
	EofCloses bool   // optional, default is false. Closes Pipeleine gracefully after input file was read
	// contains filtered or unexported fields
}

func (StdIn) New

func (segment StdIn) New(config map[string]string) segments.Segment

func (*StdIn) Run

func (segment *StdIn) Run(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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