Documentation ¶
Overview ¶
Package cassandra provides the functionality to use Cssandra as long term and distributed storage
Index ¶
- Variables
- func CreateSchema()
- type Config
- type Store
- func (store Store) QueryIntSeries(query common.Query) ([]common.IntSeries, error)
- func (store Store) QueryIntSeriesBatch(queries []common.Query) ([]common.QueryResult, []common.IntSeries, error)
- func (store Store) QuerySeries(queries []common.Query) ([]common.QueryResult, []common.Series, error)
- func (store Store) Shutdown()
- func (store Store) StoreType() string
- func (store Store) WriteDoubleSeries(series []common.DoubleSeries) error
- func (store Store) WriteIntSeries(series []common.IntSeries) error
- type StoreMap
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 Config ¶ added in v0.1.0
type Config struct { Host string `yaml:"host" json:"host"` Port int `yaml:"port" json:"port"` Keyspace string `yaml:"keyspace" json:"keyspace"` XXX map[string]interface{} `yaml:",inline"` }
TODO: keyspace
func (*Config) UnmarshalYAML ¶ added in v0.1.0
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contains a cassandra session
func CreateStore ¶ added in v0.1.0
func NewCassandraStore ¶
NewCassandraStore creates a new cassandra store connecting to localhost cassandra
func (Store) QueryIntSeries ¶
QueryIntSeries implements Store interface Deprecated: Use QueryIntSeriesBatch instead
func (Store) QueryIntSeriesBatch ¶ added in v0.0.2
func (store Store) QueryIntSeriesBatch(queries []common.Query) ([]common.QueryResult, []common.IntSeries, error)
QueryIntSeriesBatch implements Store interface
func (Store) QuerySeries ¶ added in v0.0.3
func (Store) WriteDoubleSeries ¶ added in v0.0.3
func (store Store) WriteDoubleSeries(series []common.DoubleSeries) error
WriteDoubleSeries implements Store interface
Click to show internal directories.
Click to hide internal directories.