http

package
v0.0.0-...-be43ff6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	// contains filtered or unexported fields
}

func New

func New(endpoint, client, secret string) *HTTPClient

func (*HTTPClient) IsAllowed

func (c *HTTPClient) IsAllowed(ar *AuthorizeRequest) (bool, error)

func (*HTTPClient) IsAuthenticated

func (c *HTTPClient) IsAuthenticated(token string) (bool, error)

func (*HTTPClient) IsRequestAllowed

func (c *HTTPClient) IsRequestAllowed(req *http.Request, resource, permission, owner string) (bool, error)

func (*HTTPClient) SetClientToken

func (c *HTTPClient) SetClientToken(token *oauth2.Token)

Jump to

Keyboard shortcuts

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