Documentation
¶
Index ¶
- type CountHandler
- type DelaysHandler
- func (this *DelaysHandler) Delete(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (this *DelaysHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (this *DelaysHandler) Put(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (this *DelaysHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
- type HealthHandler
- type HoverflyCount
- type HoverflyDelays
- type HoverflyMetadata
- type HoverflyState
- type HoverflyStats
- type MessageResponse
- type MetadataHandler
- func (this *MetadataHandler) Delete(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (this *MetadataHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (this *MetadataHandler) Put(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
- func (this *MetadataHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
- type MiddlewareSchema
- type RecordsCount
- type ResponseDelayPayloadView
- type ResponseDelayView
- type SetMetadata
- type StateHandler
- type StateRequest
- type StatsHandler
- type StatsResponse
- type StoredMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountHandler ¶
type CountHandler struct {
Hoverfly HoverflyCount
}
func (*CountHandler) Get ¶
func (this *CountHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
RecordsCount returns number of captured requests as a JSON payload
func (*CountHandler) RegisterRoutes ¶
func (this *CountHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
type DelaysHandler ¶
type DelaysHandler struct {
Hoverfly HoverflyDelays
}
func (*DelaysHandler) Delete ¶
func (this *DelaysHandler) Delete(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*DelaysHandler) Get ¶
func (this *DelaysHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*DelaysHandler) Put ¶
func (this *DelaysHandler) Put(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*DelaysHandler) RegisterRoutes ¶
func (this *DelaysHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
type HealthHandler ¶
type HealthHandler struct{}
func (*HealthHandler) Get ¶
func (this *HealthHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*HealthHandler) RegisterRoutes ¶
func (this *HealthHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
type HoverflyCount ¶
type HoverflyDelays ¶
type HoverflyDelays interface { GetResponseDelays() ResponseDelayPayloadView SetResponseDelays(ResponseDelayPayloadView) error DeleteResponseDelays() }
type HoverflyMetadata ¶
type HoverflyState ¶
type HoverflyStats ¶
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
func (*MessageResponse) Encode ¶
func (m *MessageResponse) Encode() ([]byte, error)
type MetadataHandler ¶
type MetadataHandler struct {
Hoverfly HoverflyMetadata
}
func (*MetadataHandler) Delete ¶
func (this *MetadataHandler) Delete(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*MetadataHandler) Get ¶
func (this *MetadataHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
AllMetadataHandler returns JSON content type http response
func (*MetadataHandler) Put ¶
func (this *MetadataHandler) Put(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func (*MetadataHandler) RegisterRoutes ¶
func (this *MetadataHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
type MiddlewareSchema ¶
type MiddlewareSchema struct {
Middleware string `json:"middleware"`
}
type RecordsCount ¶
type RecordsCount struct {
Count int `json:"count"`
}
type ResponseDelayPayloadView ¶
type ResponseDelayPayloadView struct {
Data []ResponseDelayView `json:"data"`
}
type ResponseDelayView ¶
type SetMetadata ¶
type StateHandler ¶
type StateHandler struct {
Hoverfly HoverflyState
}
func (*StateHandler) Get ¶
func (this *StateHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
CurrentStateHandler returns current state
func (*StateHandler) Post ¶
func (this *StateHandler) Post(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
func (*StateHandler) RegisterRoutes ¶
func (this *StateHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
type StateRequest ¶
type StatsHandler ¶
type StatsHandler struct {
Hoverfly HoverflyStats
}
func (*StatsHandler) Get ¶
func (this *StatsHandler) Get(w http.ResponseWriter, req *http.Request, next http.HandlerFunc)
StatsHandler - returns current stats about Hoverfly (request counts, record count)
func (*StatsHandler) GetWS ¶
func (this *StatsHandler) GetWS(w http.ResponseWriter, r *http.Request)
StatsWSHandler - returns current stats about Hoverfly (request counts, record count) through the websocket
func (*StatsHandler) RegisterRoutes ¶
func (this *StatsHandler) RegisterRoutes(mux *bone.Mux, am *handlers.AuthHandler)
type StatsResponse ¶
type StoredMetadata ¶
recordedRequests struct encapsulates payload data
Click to show internal directories.
Click to hide internal directories.