Back to

Package token

Latest Go to latest

The latest major version is .

Published: Jul 8, 2020 | License: LGPL-3.0 | Module:


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