runners

package
v0.0.0-...-e59334c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CLOSED_STATUS string = "close"
View Source
const GIGABYTE_CONVERSION float64 = 1000000000
View Source
const MEGABYTE_CONVERSION float64 = 1000000
View Source
const NOT_VALID_DATE_PARAMETER = "Field is not a valid date parameter"

NOT_VALID_DATE_PARAMETER error message

View Source
const OPEN_STATUS string = "open"
View Source
const SECONDS_PER_DAY float64 = 86400
View Source
const SECONDS_PER_MONTH float64 = 2628000
View Source
const SECONDS_PER_YEAR float64 = 31540000

Variables

This section is empty.

Functions

This section is empty.

Types

type FilterResponse

type FilterResponse struct {
	Passed bool               `json:"passed"`
	Err    error              `json:"error"`
	List   []string           `json:"list"`
	Report reports.Reportable `json:"report"`
}

FilterResponse is the response of a filter run

type IndexStatsResponse

type IndexStatsResponse struct {
	// contains filtered or unexported fields
}

IndexStatsResponse represents the response of an index stats call

type Runnerable

type Runnerable interface {
	// Init initializes the filter runner
	Init(criteria criterias.Criteriable, builder *golastic.Connection, info ...infos.Informable) (Runnerable, error)

	// RunFilter filters out elements from the actionable list
	RunFilter(channel chan *FilterResponse)
}

Runnerable represents a contract to be implemented by filter runners

func NewRunner

func NewRunner(criteria criterias.Criteriable, connection *golastic.Connection, info ...infos.Informable) (Runnerable, error)

NewRunner return a filter runner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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