Back to godoc.org

Package token

v0.0.0-...-ffd16d0
Latest Go to latest

The latest major version is .

Published: Jul 8, 2020 | License: LGPL-3.0 | Module: github.com/urandom/readeef

Index

type BoltStorage

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

func NewBoltStorage

func NewBoltStorage(path string) (BoltStorage, error)

func (BoltStorage) Exists

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

func (BoltStorage) RemoveExpired

func (b BoltStorage) RemoveExpired() error

func (BoltStorage) Store

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

type Storage

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier