Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlushHandler ¶
type FlushHandler struct {
// contains filtered or unexported fields
}
FlushHandler records all requests that come to it in some storage.
func NewFlushHandler ¶
func NewFlushHandler(storage storage.Driver) *FlushHandler
NewFlushHandler creates a new, configured FlushHandler.
func (*FlushHandler) HandlerFunc ¶
func (h *FlushHandler) HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc is the actual HTTP handler.
type FlushHandlerResponse ¶
type FlushHandlerResponse struct {
Message string `json:"message"`
}
FlushHandlerResponse represents the structure of the response given by the FlushHandler.
type InHandler ¶
type InHandler struct {
// contains filtered or unexported fields
}
InHandler records all requests that come to it in some storage.
func NewInHandler ¶
NewInHandler creates a new, configured InHandler.
func (*InHandler) HandlerFunc ¶
func (h *InHandler) HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc is the actual HTTP handler.
type InHandlerResponse ¶
InHandlerResponse represents the structure of the response given by the InHandler.
type OutCollectionHandler ¶
type OutCollectionHandler struct {
// contains filtered or unexported fields
}
OutCollectionHandler returns the currently stored collection of requests.
func NewOutCollectionHandler ¶
func NewOutCollectionHandler(storage storage.Driver) *OutCollectionHandler
NewOutCollectionHandler creates a new, configured OutCollectionHandler.
func (*OutCollectionHandler) HandlerFunc ¶
func (h *OutCollectionHandler) HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc is the actual HTTP handler.
type OutCollectionResponse ¶
type OutCollectionResponse struct {
Requests []OutCollectionResponseItem `json:"requests"`
}
OutCollectionResponse represents the response for the OutCollectionHandler.
type OutCollectionResponseItem ¶
type OutCollectionResponseItem struct { ID uint `json:"id"` Path string `json:"path"` Method string `json:"method"` Time time.Time `json:"time"` Link string `json:"link"` }
OutCollectionResponseItem represents a simplified version of the model.Request struct, this is intended to make output smaller and easier to parse when looking at the collection.
type OutResourceBodyHandler ¶
type OutResourceBodyHandler struct {
// contains filtered or unexported fields
}
ReverbResourceBodyHandler returns the body of a specific stored request.
func NewOutResourceBodyHandler ¶
func NewOutResourceBodyHandler(storage storage.Driver) *OutResourceBodyHandler
NewOutResourceBodyHandler creates a new, configured OutResourceBodyHandler.
func (*OutResourceBodyHandler) HandlerFunc ¶
func (h *OutResourceBodyHandler) HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc is the actual HTTP handler.
type OutResourceHandler ¶
type OutResourceHandler struct {
// contains filtered or unexported fields
}
OutResourceHandler returns the the details of a stored request.
func NewOutResourceHandler ¶
func NewOutResourceHandler(storage storage.Driver) *OutResourceHandler
NewOutResourceHandler creates a new, configured OutResourceHandler.
func (*OutResourceHandler) HandlerFunc ¶
func (h *OutResourceHandler) HandlerFunc(w http.ResponseWriter, r *http.Request)
HandlerFunc is the actual HTTP handler.