Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(867)

Issue 6010048: store: serve counters via the API

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by niemeyer
Modified:
12 years, 1 month ago
Reviewers:
mp+101672
Visibility:
Public.

Description

store: serve counters via the API Will likely need to protect with a key soon, but as a start this should be fine. https://code.launchpad.net/~niemeyer/juju/go-store-stats-api/+merge/101672 Requires: https://code.launchpad.net/~niemeyer/juju/go-store-stats/+merge/101442 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11

Patch Set 2 : store: serve counters via the API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -8 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M store/server.go View 1 2 chunks +46 lines, -0 lines 0 comments Download
M store/server_test.go View 1 3 chunks +45 lines, -8 lines 0 comments Download

Messages

Total messages: 6
niemeyer
Please take a look.
12 years, 1 month ago (2012-04-12 01:55:38 UTC) #1
fwereade
LGTM https://codereview.appspot.com/6010048/diff/1/store/server.go File store/server.go (right): https://codereview.appspot.com/6010048/diff/1/store/server.go#newcode131 store/server.go:131: w.WriteHeader(http.StatusForbidden) Shouldn't we just return here? https://codereview.appspot.com/6010048/diff/1/store/server.go#newcode146 store/server.go:146: ...
12 years, 1 month ago (2012-04-17 13:11:42 UTC) #2
rog
LGTM https://codereview.appspot.com/6010048/diff/1/store/server.go File store/server.go (right): https://codereview.appspot.com/6010048/diff/1/store/server.go#newcode125 store/server.go:125: } how about: path := r.URL.Path[len(base):] then using ...
12 years, 1 month ago (2012-04-17 13:16:21 UTC) #3
niemeyer
https://codereview.appspot.com/6010048/diff/1/store/server.go File store/server.go (right): https://codereview.appspot.com/6010048/diff/1/store/server.go#newcode125 store/server.go:125: } On 2012/04/17 13:16:21, rog wrote: > how about: ...
12 years, 1 month ago (2012-04-17 16:46:41 UTC) #4
niemeyer
https://codereview.appspot.com/6010048/diff/1/store/server.go File store/server.go (right): https://codereview.appspot.com/6010048/diff/1/store/server.go#newcode131 store/server.go:131: w.WriteHeader(http.StatusForbidden) On 2012/04/17 16:46:41, niemeyer wrote: > On 2012/04/17 ...
12 years, 1 month ago (2012-04-17 17:04:44 UTC) #5
niemeyer
12 years, 1 month ago (2012-04-17 17:15:09 UTC) #6
*** Submitted:

store: serve counters via the API

Will likely need to protect with a key soon, but
as a start this should be fine.

R=fwereade, rog
CC=
https://codereview.appspot.com/6010048
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b