session

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemStore

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

MemStore is an in-memory SessionStore backed by a sync.RWMutex-protected map. Suitable for development and single-instance deployments.

func NewMemStore

func NewMemStore() *MemStore

New returns a ready-to-use in-memory session store.

func (*MemStore) Delete

func (s *MemStore) Delete(sessionID string) error

func (*MemStore) Get

func (s *MemStore) Get(sessionID string, key string) (string, error)

func (*MemStore) Set

func (s *MemStore) Set(sessionID string, key string, value string) error

Jump to

Keyboard shortcuts

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