Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ResponseTimeHeaderName string `json:"responseTimeHeaderName"`
ResponseTimeLimitMs string `json:"responseTimeLimitMs"`
CookieSetHeaderValue string `json:"cookieSetHeaderValue"`
}
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type ResponseTimeLimit ¶
type ResponseTimeLimit struct {
// contains filtered or unexported fields
}
ResponseTimeLimit a ResponseTimeLimit plugin.
func (*ResponseTimeLimit) ServeHTTP ¶
func (a *ResponseTimeLimit) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.