Documentation ¶
Overview ¶
Package cassandra provides the functionality to use Cssandra as long term and distributed storage
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CassandraHost = "127.0.0.1"
Functions ¶
func CreateSchema ¶
func CreateSchema()
CreateSchema use naive with tag schema TODO: allow passing different configuration
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contains a cassandra session
func GetDefaultCassandraStore ¶
GetDefaultCassandraStore will connect to cassandra if it is not found NOTE: we don't do it in init because it would break other stores, mem, mysql etc. TODO: we should return error and allow retry etc.
func NewCassandraStore ¶
NewCassandraStore creates a new cassandra store connecting to localhost cassandra
func (Store) QueryIntSeries ¶
QueryIntSeries implements Store interface
Click to show internal directories.
Click to hide internal directories.