token

package
v0.0.0-...-95c851e Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
}

Jump to

Keyboard shortcuts

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