streamer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TIMEFORMAT for formatting time from csv
	TIMEFORMAT = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryParams

type QueryParams struct {
	HostName  string
	StartTime time.Time
	EndTime   time.Time
}

QueryParams defines the definition of query to be made by workers to database

type Streamer

type Streamer struct {
	Buffer int
}

Streamer defines the definition of streamer

func (*Streamer) Stream

func (s *Streamer) Stream(filePath string) (queryParmsChan chan QueryParams, errChan chan error)

Stream is used to stream through csv file and return queryParmsChan channel which will be used by workers

Jump to

Keyboard shortcuts

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