capi

package
v0.0.0-...-c7b5264 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Doer

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

type Restager

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

func NewRestager

func NewRestager(appID, apiAddr string, f TokenFetcher, d Doer, log *log.Logger) *Restager

func (*Restager) SetAndRestage

func (r *Restager) SetAndRestage()

type TokenFetcher

type TokenFetcher interface {
	Token() string
}

type Validator

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

func NewValidator

func NewValidator(appID, capiAddr string, doer Doer, log *log.Logger) *Validator

func (*Validator) Validate

func (v *Validator) Validate(token string) bool

Jump to

Keyboard shortcuts

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