mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
This commit refactors the config into a `main.Config` object instead of a global singleton. The `core.Service` is also refactored into the `main` package and individual pieces of the service are wired together by the `pilosa` binary. These two changes are required to begin to decouple packages from one another and allow them to be individually unit tested. Previously most top-level objects in the system could access any other top-level object through the `core.Service` which effectively made `Service` a singleton in the system. Each top-level object now has inline interfaces for their dependencies so that can be set at runtime by the `main` package or can be mocked by a test package.
17 lines
302 B
YAML
17 lines
302 B
YAML
id: 0d92507d-1646-44f8-be81-79d79c1df623
|
|
host: localhost
|
|
port_tcp: 12001
|
|
port_http: 15001
|
|
log_path: /tmp
|
|
fragment_base: /tmp/single
|
|
storage_backend: cassandra
|
|
cassandra_host: localhost
|
|
cassandra_keyspace: pilosa
|
|
supported_frames:
|
|
- b.n
|
|
- t.t
|
|
- l.n
|
|
- d
|
|
- p.n
|
|
etcd_servers:
|
|
- http://127.0.0.1:4001
|