https://github.com/terrextech/go-eventstore-models
Data-handling models for TerrexTech EventStore.
https://github.com/terrextech/go-eventstore-models
go golang models
Last synced: 9 months ago
JSON representation
Data-handling models for TerrexTech EventStore.
- Host: GitHub
- URL: https://github.com/terrextech/go-eventstore-models
- Owner: TerrexTech
- License: mit
- Created: 2018-08-29T01:41:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T02:32:11.000Z (over 7 years ago)
- Last Synced: 2025-08-14T02:58:29.512Z (11 months ago)
- Topics: go, golang, models
- Language: Go
- Homepage:
- Size: 4.99 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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:**
* **[bootstrap][0]**
* **[definition][1]**
* **[model][2]**
### 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`][3] and the [`bootstrap#EventMeta`][4] 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.
[0]: https://godoc.org/github.com/TerrexTech/go-eventstore-models/bootstrap
[1]: https://godoc.org/github.com/TerrexTech/go-eventstore-models/definition
[2]: https://godoc.org/github.com/TerrexTech/go-eventstore-models/model
[3]: https://godoc.org/github.com/TerrexTech/go-eventstore-models/bootstrap#Event
[4]: https://godoc.org/github.com/TerrexTech/go-eventstore-models/bootstrap#EventMeta