common

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2013 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WrongNumberOfArguments = iota
	InvalidArgument
	InternalError
)

Variables

This section is empty.

Functions

func CurrentTime

func CurrentTime() int64

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