tokenkey

package
v0.0.0-...-9b9f36b Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K

type K struct {
	Algorithm string `json:"algorithm"`
	Key       string `json:"key"`
}

K is the data returned by the token key provider

type Provider

type Provider interface {
	fmt.Stringer
	Get(renew bool) (*K, error)
}

Provider represents a provider of the token key

func NewHTTPProvider

func NewHTTPProvider(url, cacheFile string) Provider

NewHTTPProvider returns a new Provider that fetches the key from a HTTP resource

Jump to

Keyboard shortcuts

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