Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Route ¶
func Route(h http.HandlerFunc, isProd bool) http.HandlerFunc
Route composes endpoints by wrapping destination handler with handler pipeline providing tracing with aws x-ray, injecting logging middleware with request details into the context, and error recovery middleware, and gzipping the response
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler manages the endpoints of the Server
func (*Handler) Get ¶
func (h *Handler) Get(w http.ResponseWriter, r *http.Request)
Get returns a http endpoint listening for Get quote by attribute requests
func (*Handler) Put ¶
func (h *Handler) Put(w http.ResponseWriter, r *http.Request)
Put reads & validates the given *Quote struct, before saving to DynamoDB
Click to show internal directories.
Click to hide internal directories.