token

package
v0.11.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientRedirectUrl = "http://localhost:6391/callback"
	Directory         = ".heimdallr"
)

Variables

This section is empty.

Functions

func OpenBrowser

func OpenBrowser(u string) error

Types

type Client

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

func NewClient

func NewClient(tokenFilename string) *Client

func (*Client) GetToken

func (c *Client) GetToken() (string, error)

func (*Client) RequestToken

func (c *Client) RequestToken(endpoint string) (string, error)

type ExchangeResponse

type ExchangeResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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