readeef: github.com/urandom/readeef/api/token Index | Files

package token

import "github.com/urandom/readeef/api/token"

Index

Package Files

bolt_storage.go token.go

type BoltStorage Uses

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

func NewBoltStorage Uses

func NewBoltStorage(path string) (BoltStorage, error)

func (BoltStorage) Exists Uses

func (b BoltStorage) Exists(token string) (bool, error)

func (BoltStorage) RemoveExpired Uses

func (b BoltStorage) RemoveExpired() error

func (BoltStorage) Store Uses

func (b BoltStorage) Store(token string, expiration time.Time) error

type Storage Uses

type Storage interface {
    Store(token string, expiration time.Time) error
    Exists(token string) (bool, error)
    RemoveExpired() error
}

Package token imports 4 packages (graph) and is imported by 1 packages. Updated 2017-11-18. Refresh now. Tools for package owners.