source

package
v0.0.0-...-0e50cf9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

source package is responsible for holding the logic of the start state of the plumbing system

Index

Constants

View Source
const ColIndex = 0

ColIndex defines the position of the column names in the slice given by the csv package after reading a CSV file

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	Description string                // Description of the source
	Pipes       map[string]*pipe.Pipe // mapping of CSV column titles to the Pipes that will operate on the columns
	// contains filtered or unexported fields
}

Source represents the beginning state of a pipeline

func NewSource

func NewSource(dsc, file string, pps map[string]*pipe.Pipe) (*Source, error)

New returns a new instance of a Source

Jump to

Keyboard shortcuts

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