Documentation ¶
Index ¶
- func HandlerV1(response http.ResponseWriter, request *http.Request)
- func HandlerV2(response http.ResponseWriter, request *http.Request)
- func HandlerV3(response http.ResponseWriter, request *http.Request)
- func Usage()
- func WriteLog(writer io.Writer, message string) error
- type Animal
- type AuthenticatedLoader
- type LoadOrderHandler
- type Order
- type OrderLoader
- type Owner
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthenticatedLoader ¶
type AuthenticatedLoader struct {
// contains filtered or unexported fields
}
AuthenticatedLoader will load orders for based on the supplied owner
type LoadOrderHandler ¶
type LoadOrderHandler struct {
// contains filtered or unexported fields
}
LoadOrderHandler is a HTTP handler that loads orders based on the current user and supplied user ID
func NewLoadOrderHandler ¶
func NewLoadOrderHandler(loader OrderLoader) *LoadOrderHandler
NewLoadOrderHandler creates a new instance of LoadOrderHandler
func (*LoadOrderHandler) ServeHTTP ¶
func (l *LoadOrderHandler) ServeHTTP(response http.ResponseWriter, request *http.Request)
ServeHTTP implements http.Handler
type OrderLoader ¶
type OrderLoader interface {
// contains filtered or unexported methods
}
Loads orders based on supplied owner and order ID
Click to show internal directories.
Click to hide internal directories.