Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuth ¶
type BasicAuth struct {
Username, Password string
// contains filtered or unexported fields
}
type Chain ¶
type Chain []Middleware
type LoggableHTTPRequest ¶
type LoggableHTTPRequest struct { Method string URL *url.URL Proto string ProtoMajor int ProtoMinor int Header http.Header Body io.ReadCloser ContentLength int64 TransferEncoding []string Close bool Host string Form url.Values PostForm url.Values MultipartForm *multipart.Form Trailer http.Header RemoteAddr string RequestURI string TLS *tls.ConnectionState }
Golang 1.5 introduces a http.Request.Cancel field, of type <-chan struct{} which the lager library fails to deal with. We introduced loggableHTTPRequest as a way of handling this until such time as lager can deal with it.
Once lager can handle the request directly, remove this struct. #101259402
type Middleware ¶
func NewBasicAuth ¶
func NewBasicAuth(username, password string, logger lager.Logger) Middleware
func NewHTTPSEnforcer ¶
func NewHTTPSEnforcer(httpsPort uint) Middleware
func NewLogger ¶
func NewLogger(l lager.Logger) Middleware
func NewPanicRecovery ¶
func NewPanicRecovery(logger lager.Logger) Middleware
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.