common

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WrongNumberOfArguments = iota
	InvalidArgument
	InternalError
)

Variables

View Source
var InRange Checker = &inRangeChecker{
	&CheckerInfo{Name: "InRange", Params: []string{"obtained", "expected greater than", "expected less than"}},
}

Functions

func CurrentTime

func CurrentTime() int64

func StringToSeriesArray

func StringToSeriesArray(seriesString string) ([]*protocol.Series, error)

func TimeToMicroseconds

func TimeToMicroseconds(t time.Time) int64

Types

type EnhancedTime

type EnhancedTime time.Time

type QueryError

type QueryError struct {
	ErrorCode int
	ErrorMsg  string
}

func NewQueryError

func NewQueryError(code int, msg string, args ...interface{}) *QueryError

func (*QueryError) Error

func (self *QueryError) Error() string

Jump to

Keyboard shortcuts

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