Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertToDataStoreSeries(s *SerializedSeries, precision TimePrecision) (*protocol.Series, error)
- func CurrentTime() int64
- func GetFileSize(path string) (int64, error)
- func ParseTimeDuration(value string) (int64, error)
- func StringToSeriesArray(seriesString string, args ...interface{}) ([]*protocol.Series, error)
- func TimeToMicroseconds(t time.Time) int64
- type AuthenticationError
- type AuthorizationError
- type EnhancedTime
- type QueryError
- type SerializedSeries
- type TimePrecision
- type Type
- type User
Constants ¶
View Source
const ( TYPE_INT = iota TYPE_STRING TYPE_BOOL TYPE_DOUBLE TYPE_UNKNOWN )
View Source
const ( WrongNumberOfArguments = iota InvalidArgument InternalError )
Variables ¶
View Source
var TRUE = true
View Source
var VALID_TABLE_NAMES *regexp.Regexp
Functions ¶
func ConvertToDataStoreSeries ¶ added in v0.5.0
func ConvertToDataStoreSeries(s *SerializedSeries, precision TimePrecision) (*protocol.Series, error)
func CurrentTime ¶
func CurrentTime() int64
func GetFileSize ¶ added in v0.4.0
func ParseTimeDuration ¶ added in v0.5.0
func StringToSeriesArray ¶
func TimeToMicroseconds ¶
Types ¶
type AuthenticationError ¶ added in v0.5.0
type AuthenticationError string
func NewAuthenticationError ¶ added in v0.5.0
func NewAuthenticationError(formatStr string, args ...interface{}) AuthenticationError
func (AuthenticationError) Error ¶ added in v0.5.0
func (self AuthenticationError) Error() string
type AuthorizationError ¶ added in v0.1.0
type AuthorizationError string
func NewAuthorizationError ¶ added in v0.1.0
func NewAuthorizationError(formatStr string, args ...interface{}) AuthorizationError
func (AuthorizationError) Error ¶ added in v0.1.0
func (self AuthorizationError) Error() string
type EnhancedTime ¶
type QueryError ¶
func NewQueryError ¶
func NewQueryError(code int, msg string, args ...interface{}) *QueryError
func (*QueryError) Error ¶
func (self *QueryError) Error() string
type SerializedSeries ¶ added in v0.5.0
type SerializedSeries struct { Name string `json:"name"` Columns []string `json:"columns"` Points [][]interface{} `json:"points"` }
func SerializeSeries ¶ added in v0.5.0
func SerializeSeries(memSeries map[string]*protocol.Series, precision TimePrecision) []*SerializedSeries
takes a slice of protobuf series and convert them to the format that the http api expect
type TimePrecision ¶ added in v0.5.0
type TimePrecision int
const ( MicrosecondPrecision TimePrecision = iota MillisecondPrecision SecondPrecision )
type Type ¶ added in v0.4.0
type Type int
func CoerceValues ¶ added in v0.4.0
func CoerceValues(leftValue, rightValue *protocol.FieldValue) (interface{}, interface{}, Type)
Click to show internal directories.
Click to hide internal directories.