interfaces

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2013 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombineOperation

type CombineOperation int
const (
	NotOperation CombineOperation = iota // First has to be nil
	AndOperation
	OrOperation
)

definition of combining operators with order of precedence

type CombiningCondition

type CombiningCondition struct {
	First     *Condition
	CombineOp CombineOperation
	Second    *Condition
}

type ComparisonCondition

type ComparisonCondition struct {
	FieldName string
	Op        Operation
	Value     interface{}
}

type Condition

type Condition interface {
	IsCondition()
}

type Operation

type Operation int
const (
	EqualOperation Operation = iota
	NotEqualOperation
	GreaterThanOperation
	GreaterThanOrEqualOperation
	LessThanOperation
	LessThanOrEqualOperation
)

type ReadRequest

type ReadRequest struct {
	Timeseries   string
	IsRegex      bool // is the timeseries name a regex?
	StartTime    time.Time
	EndTime      time.Time
	IsContinuous bool
	Conditions   []*Condition
}

TODO: applying functions and joining time series

type StorageEngineConsensusI

type StorageEngineConsensusI interface {
}

type StorageEngineProcessingI

type StorageEngineProcessingI interface {
	WritePoints(request *WriteRequest) error
	ReadPoints(request *ReadRequest, yield func(pts []*protocol.Point) error) error
}

type WriteRequest

type WriteRequest struct {
	Timeseries []*protocol.Series
}

Jump to

Keyboard shortcuts

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