common

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_INT = iota
	TYPE_STRING
	TYPE_BOOL
	TYPE_DOUBLE
	TYPE_UNKNOWN
)
View Source
const (
	WrongNumberOfArguments = iota
	InvalidArgument
	InternalError
)

Variables

This section is empty.

Functions

func CurrentTime

func CurrentTime() int64

func GetFileSize added in v0.4.0

func GetFileSize(path string) (int64, error)

func RingLocation added in v0.4.0

func RingLocation(database *string, timeSeries *string, time *int64) int

func StringToSeriesArray

func StringToSeriesArray(seriesString string, args ...interface{}) ([]*protocol.Series, error)

func TimeToMicroseconds

func TimeToMicroseconds(t time.Time) int64

Types

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 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

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)

type User added in v0.0.2

type User interface {
	GetName() string
	IsDeleted() bool
	IsClusterAdmin() bool
	IsDbAdmin(db string) bool
	GetDb() string
	HasWriteAccess(name string) bool
	HasReadAccess(name string) bool
}

Jump to

Keyboard shortcuts

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