readers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReader

type FileReader struct {
	// The file names
	Files []string
}

Defines a file reader

func (FileReader) Read

func (reader FileReader) Read(out chan<- *domain.Line)

Reads the file and sends each line to the given channel

type Reader

type Reader interface {
	// Reads the input source and sends the contents to the given channel
	Read(out chan<- *domain.Line)
}

Interface that defines a reader, which is capable of read strings from a source and sends them to the pipeline for further processing

Jump to

Keyboard shortcuts

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