Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerWrapper ¶
type HandlerWrapper struct { common.HTTPHandler // contains filtered or unexported fields }
HandlerWrapper wraps an existing HTTP handler and call to handler endpoint returns 503 (Service Unavailable). If authorized then the wrapped handler is invoked.
func NewMaintenanceWrapper ¶
func NewMaintenanceWrapper(handler common.HTTPHandler) *HandlerWrapper
NewMaintenanceWrapper will return service unavailable for handler that was passed in.
func (*HandlerWrapper) Handler ¶
func (h *HandlerWrapper) Handler() common.HTTPRequestHandler
Handler returns the 'wrapper' handler.
Click to show internal directories.
Click to hide internal directories.