token

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetAccessToken(string) (string, error)
}

Client interface

func New

func New(redirectURI, clientID, clientSecret string, opts ...Option) Client

New returns token get client

type Option

type Option func(*client)

Option with client

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient set the http client

Jump to

Keyboard shortcuts

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