common

package
v0.0.0-...-4a5dc86 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotAvail

func IsNotAvail(err error) bool

IsNotAvail indicates whether the error is a NotAvailError.

Types

type HTTPError

type HTTPError struct {
	StatusCode int
	Message    string
}

HTTPError represents an error caused by a failed http request.

func (HTTPError) Error

func (e HTTPError) Error() string

type NotAvailError

type NotAvailError struct {
	StatusCode int
}

NotAvailError indicates that the service is either unreachable or unavailable.

func (NotAvailError) Error

func (e NotAvailError) Error() string

Jump to

Keyboard shortcuts

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