helper

package
v0.11.12 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingBearerToken     = errors.New("This action requires authorization but no bearer token was given")
	ErrForbidden              = errors.New("Access credentials are not sufficient to access this resource")
	ErrUnauthorized           = errors.New("Access credentials are either expired or missing a scope")
	ErrMatchesMoreThanOneRule = errors.New("Expected exactly one rule but found multiple rules")
	ErrMatchesNoRule          = errors.New("Requested url does not match any rules")
	ErrResourceNotFound       = errors.New("The requested resource could not be found")
)

Functions

func BearerTokenFromRequest

func BearerTokenFromRequest(r *http.Request) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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