Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Revision string
Revision is the service's revision and should be set at build time to the current commit hash.
Functions ¶
This section is empty.
Types ¶
type PingResponse ¶
type PingResponse struct {
Ping string `json:"ping,omitempty"`
}
PingResponse is returned when a GET request to /ping is made
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router sets up a Taxi server
func (*Router) RegisterHandler ¶
func (r *Router) RegisterHandler(method, path string, handler taxi.HandlerFunc)
RegisterHandler adds a route to the router
Click to show internal directories.
Click to hide internal directories.