first draft of a new server interface
This commit is contained in:
parent
daf82a5e04
commit
d6a9c0bbb9
9 changed files with 481 additions and 9 deletions
|
@ -41,9 +41,9 @@ func ReadyStorage(s Storage) ProbesFn {
|
|||
}
|
||||
|
||||
func ok(w http.ResponseWriter) {
|
||||
httphelper.MarshalJSON(w, status{"ok"})
|
||||
httphelper.MarshalJSON(w, Status{"ok"})
|
||||
}
|
||||
|
||||
type status struct {
|
||||
type Status struct {
|
||||
Status string `json:"status,omitempty"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue