Indexer & Query Engine for Square's metrics.
This project is still under development and should not be used for anything in production yet. We are not seeking external contributors at this time
Check out the project to the development directory.
├── api # list of publically exposed APIs.
│ └── backend
│ └── blueflood # implementation of the blueflood backend.
├── assert # helper functions to make test writing easier.
├── internal # internal library - should not be exposed to the users.
├── main # entry point.
│ └── common
├── mocks # helper code to mock HTTP calls.
├── query # logic around parsing & execution of the queries.
│ └── aggregate
└── schema # CQL schema files.
We're currently using Cassandra 2.0.X. 2.1.X is unstable and is not recommended.
Download it from: http://cassandra.apache.org/download/
- To setup schema
# Production schema
$CASSANDRA/bin/cqlsh -f schema/schema.cql
# Testing Schema
$CASSANDRA/bin/cqlsh -f schema/schema_test.cql
go get github.com/gocql/gocql
go get gopkg.in/yaml.v2
go test ./...
Please ensure the code is correctly formatted and passes the linter.
go fmt ./...
golint ./... # TODO - exclude generated files.