# README
This repository provides the models and packages for interacting efficiently with Cassandra event-store.
Currently included:
- Create
events
table and corresponding keyspace in Cassandra. - Create
events_meta
table and corresponding keyspace in Cassandra. Event
andEventMeta
models (Go structs, really) to use with other packages.Event
andEventMeta
Cassandra table-definitions.
The models provided are intended to be imported by any libraries dealing with the respective models, to ensure consistency across structures/schema.
Go Docs:
Usage:
As mentioned above, this library can be used to directly create the tables events
, events_meta
, and the associated keyspace.
To create the tables, simply call the bootstrap#Event
and the bootstrap#EventMeta
methods.
The required information (such as Cassandra Hosts, Keyspace/Table names, etc.) is read from the Environemnt.
The default configuration can be found in the .env
file at the root.