storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitStorage

func InitStorage() error

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}
var Live *Storage = nil

func (*Storage) Get

func (s *Storage) Get(user string) (tokens.TTokens, error)

Get retrieves stored tokens for a user.

func (*Storage) Put

func (s *Storage) Put(user string, tokens tokens.TTokens) error

Put stores tokens for a user.

func (*Storage) Remove

func (s *Storage) Remove(user string) error

Remove deletes stored tokens for a user.

type StorageMode

type StorageMode int
const (
	InMemory StorageMode = iota
	Database
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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