Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestLogger ¶
type RequestLogger struct {
// contains filtered or unexported fields
}
RequestLogger is the wrapper that logs requests to and responses from a plugin repository
func NewRequestLogger ¶
func NewRequestLogger(output RequestLoggerOutput) *RequestLogger
NewRequestLogger returns a pointer to a RequestLogger wrapper
func (*RequestLogger) Make ¶
func (logger *RequestLogger) Make(request *http.Request, passedResponse *plugin.Response, proxyReader plugin.ProxyReader) error
Make records the request and the response to UI
func (*RequestLogger) Wrap ¶
func (logger *RequestLogger) Wrap(innerconnection plugin.Connection) plugin.Connection
Wrap sets the connection on the RequestLogger and returns itself