go-eventstore-models

module
v5.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: MIT

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 and EventMeta models (Go structs, really) to use with other packages.
  • Event and EventMeta 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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