filestore

package
v0.0.0-...-4254deb Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 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 Store

type Store struct {
	Tokens []tokenauth.Token `yaml:"tokens"`
	// contains filtered or unexported fields
}

Store is a file based token store.

func New

func New(f string) (*Store, error)

New loads tokens and initializes a file watcher on tokens file and returns a TokenStore.

func (*Store) IsTokenValid

func (s *Store) IsTokenValid(token string) bool

IsTokenValid returns a bool to indicate validity of the token.

Jump to

Keyboard shortcuts

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