workos

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version represents the SDK version number.
	Version = "v0.9.0"
)

Variables

This section is empty.

Functions

func TryGetHTTPError

func TryGetHTTPError(r *http.Response) error

TryGetHTTPError returns an error when the http response contains invalid status code.

Types

type HTTPError

type HTTPError struct {
	Code      int
	Status    string
	RequestID string
	Message   string
}

HTTPError represents an http error.

func (HTTPError) Error

func (e HTTPError) Error() string

Jump to

Keyboard shortcuts

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