gctsdb

package
v0.0.0-...-e72b3e1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Name       string
	DataType   string
	BucketSize *time.Duration
}

func NewChannel

func NewChannel(name, datatype string, bucketSize *time.Duration) (*Channel, error)

type DataPoint

type DataPoint struct {
	Timestamp time.Time
	Value     interface{}
}

type GCTSDBServer

type GCTSDBServer struct {
	// contains filtered or unexported fields
}

func CreateGCTSDBServer

func CreateGCTSDBServer(cassandraClient *cassandra.CassandraClient) (*GCTSDBServer, error)

func (*GCTSDBServer) AddDataPoints

func (c *GCTSDBServer) AddDataPoints(channel *Channel, points []DataPoint) error

func (*GCTSDBServer) CreateChannel

func (c *GCTSDBServer) CreateChannel(channel *Channel) error

func (*GCTSDBServer) DeleteChannel

func (c *GCTSDBServer) DeleteChannel(channel string) error

func (*GCTSDBServer) GetCSession

func (c *GCTSDBServer) GetCSession() *gocql.Session

func (*GCTSDBServer) GetChannel

func (c *GCTSDBServer) GetChannel(name string) (*Channel, error)

func (*GCTSDBServer) GetChannels

func (c *GCTSDBServer) GetChannels(prefix string) []Channel

func (*GCTSDBServer) GetDataPoints

func (c *GCTSDBServer) GetDataPoints(channelName string, t1, t2 time.Time) ([]DataPoint, error)

Jump to

Keyboard shortcuts

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