client

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest added in v0.4.12

func LogRequest(req *http.Request, logger *log.Logger)

LogRequest is a util to log an HTTP request.

func LogResponse added in v0.4.12

func LogResponse(res *http.Response, logger *log.Logger)

LogResponse is a util to log an HTTP response.

Types

type Error added in v0.4.12

type Error struct {
	Msg        string
	Underlying error
}

Error is the default error returned by clients in the client package. Error is compatible with the pkg/errors package.

func NewError added in v0.4.12

func NewError(msg string, underlying error) *Error

NewError creates a new Error

func (Error) Cause added in v0.4.12

func (e Error) Cause() error

Cause points to the underlying error.

func (Error) Error added in v0.4.12

func (e Error) Error() string

Error returns the error message.

func (Error) Format added in v0.4.12

func (e Error) Format(s fmt.State, verb rune)

Format implements different error formats.

Directories

Path Synopsis
auth
v1
batch
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL