Documentation ¶
Index ¶
- type LatencyType
- func (hdlr *LatencyType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *LatencyType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *LatencyType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LatencyType ¶
type LatencyType struct { Next http.Handler Paths []string SlowDown int LineNo int // contains filtered or unexported fields }
func NewLatencyServer ¶
func NewLatencyServer(n http.Handler, p []string, slow int) *LatencyType
Parameterized for testing? or just change the test
func (*LatencyType) InitializeWithConfigData ¶
func (hdlr *LatencyType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*LatencyType) PreValidate ¶
func (hdlr *LatencyType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*LatencyType) ServeHTTP ¶
func (hdlr *LatencyType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.