Paul Dix
40cb058370
Refactor CreateShardIfNotExist
...
* make createShardIfNotExist non-exported function
* make CreateShardsIfNotExist to create shards for a given block of time. Makes it so we don't need to expose series ids on exported functions.
2014-12-03 15:36:54 -05:00
Paul Dix
3190840f4b
gofmt
2014-12-03 11:32:53 -05:00
David Norton
3478866fcb
Wire up GET /db/:db/users/:user and use Matcher
...
In addition to wiring up the endpoint, this commit also changes the
user endpoints to use two []*Matcher for readFrom and writeTo instead
of a single []string for permissions.
2014-11-26 11:02:17 -05:00
David Norton
f34ed511c0
Wire up POST /db/:db/users
2014-11-26 09:36:43 -05:00
David Norton
e3b85d1f87
Add more handler_test.go tests
2014-11-26 08:41:34 -05:00
David Norton
5810af2101
Add test for /ping
2014-11-26 08:41:34 -05:00
David Norton
d28f7eff37
go fmt handler_test.go
2014-11-26 08:41:34 -05:00
David Norton
a983745400
Wire up /db/:db/retention_policies/:name/shards
2014-11-26 08:41:34 -05:00
David Norton
9080ab95fe
Wire up POST /db/:db/retention_policies/:name
2014-11-26 08:41:33 -05:00
David Norton
35d1aaee95
Wire up DELETE /db/:db/retention_policies/:name
2014-11-26 08:41:33 -05:00
David Norton
5570d886eb
Wire up POST /db/:db/retention_polocies
2014-11-26 08:41:33 -05:00
David Norton
24aa231e6d
Rename TestHTTPServer to HTTPServer
2014-11-26 08:41:33 -05:00
David Norton
89656ef842
Make unit tests more self contained
2014-11-26 08:41:33 -05:00
David Norton
c251de96ed
Wire up /db/:db/retention_policies
2014-11-26 08:41:33 -05:00
David Norton
82d147e9c4
Wire up /db/:db/shards
2014-11-26 08:41:33 -05:00