memory

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

func NewMemory

func NewMemory() *Memory

NewMemory creates an in-memory token store.

func (*Memory) Get

func (m *Memory) Get(user string) (tokens.TTokens, error)

Get retrieves stored tokens for a user.

func (*Memory) Put

func (m *Memory) Put(user string, tokens tokens.TTokens)

Put stores tokens for a user.

func (*Memory) Remove

func (m *Memory) Remove(user string) error

Remove deletes stored tokens for a user.

Jump to

Keyboard shortcuts

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