Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorWrapper ¶
func NewErrorWrapper() *errorWrapper
NewErrorWrapper returns a new error wrapper.
Types ¶
type RequestLogger ¶
type RequestLogger struct {
// contains filtered or unexported fields
}
RequestLogger is the wrapper that logs requests to and responses from the UAA server
func NewRequestLogger ¶
func NewRequestLogger(output RequestLoggerOutput) *RequestLogger
NewRequestLogger returns a pointer to a RequestLogger wrapper
func (*RequestLogger) Wrap ¶
func (logger *RequestLogger) Wrap(innerconnection uaa.Connection) uaa.Connection
Wrap sets the connection on the RequestLogger and returns itself
type RequestLoggerOutput ¶
type RequestLoggerOutput interface { DisplayBody(body []byte) error DisplayJSONBody(body []byte) error DisplayHeader(name string, value string) error DisplayHost(name string) error DisplayRequestHeader(method string, uri string, httpProtocol string) error DisplayResponseHeader(httpProtocol string, status string) error DisplayType(name string, requestDate time.Time) error HandleInternalError(err error) Start() error Stop() error }
RequestLoggerOutput is the interface for displaying logs
type RetryRequest ¶
type RetryRequest struct {
// contains filtered or unexported fields
}
RetryRequest is a wrapper that retries failed requests if they contain a 5XX status code.
func NewRetryRequest ¶
func NewRetryRequest(maxRetries int) *RetryRequest
NewRetryRequest returns a pointer to a RetryRequest wrapper.
func (*RetryRequest) Wrap ¶
func (retry *RetryRequest) Wrap(innerconnection uaa.Connection) uaa.Connection
Wrap sets the connection in the RetryRequest and returns itself.
type UAAAuthentication ¶
type UAAAuthentication struct {
// contains filtered or unexported fields
}
UAAAuthentication wraps connections and adds authentication headers to all requests
func NewUAAAuthentication ¶
func NewUAAAuthentication(client UAAClient) *UAAAuthentication
NewUAAAuthentication returns a pointer to a UAAAuthentication wrapper with the client set as the AuthenticationStore
func (*UAAAuthentication) Make ¶
Make adds authentication headers to the passed in request and then calls the wrapped connection's Make
func (*UAAAuthentication) Wrap ¶
func (t *UAAAuthentication) Wrap(innerconnection uaa.Connection) uaa.Connection
Wrap sets the connection on the UAAAuthentication and returns itself
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 |