endpoint

package
v0.0.0-...-560b2d4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapzenAPIEndpoint

type MapzenAPIEndpoint struct {
	api.APIEndpoint
	Scheme string
	Host   string
	Path   string
	Key    string
}

func NewMapzenAPIEndpoint

func NewMapzenAPIEndpoint(key string) (*MapzenAPIEndpoint, error)

func (*MapzenAPIEndpoint) NewRequest

func (e *MapzenAPIEndpoint) NewRequest(params *url.Values) (*http.Request, error)

func (*MapzenAPIEndpoint) SetEndpoint

func (e *MapzenAPIEndpoint) SetEndpoint(custom string) error

func (*MapzenAPIEndpoint) URL

func (e *MapzenAPIEndpoint) URL() (*url.URL, error)

type OAuth2APIEndpoint

type OAuth2APIEndpoint struct {
	api.APIEndpoint
	Scheme string
	Host   string
	Path   string
	Token  string
}

func NewOAuth2APIEndpoint

func NewOAuth2APIEndpoint(access_token string) (*OAuth2APIEndpoint, error)

func (*OAuth2APIEndpoint) NewRequest

func (e *OAuth2APIEndpoint) NewRequest(params *url.Values) (*http.Request, error)

func (*OAuth2APIEndpoint) SetEndpoint

func (e *OAuth2APIEndpoint) SetEndpoint(custom string) error

func (*OAuth2APIEndpoint) URL

func (e *OAuth2APIEndpoint) URL() (*url.URL, error)

Jump to

Keyboard shortcuts

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