Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler structure
func NewHandler ¶
func NewHandler(registry RegistryProvider, resFac ResponseFormatterFactory, requester Requester) *Handler
NewHandler create new handler
type RegistryProvider ¶
RegistryProvider
type ResponseFormatterFactory ¶
type ResponseFormatterFactory interface {
Create(res http.ResponseWriter, req *http.Request) formatters.ResponseFormatter
}
ResponseFormatterFactory create a response format
Click to show internal directories.
Click to hide internal directories.