ctxstore

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, storeKey any, key any) any

func Remove

func Remove(ctx context.Context, storeKey any, key any) any

func Swap

func Swap(ctx context.Context, storeKey any, key any, value any) any

Types

type Store

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

func NewStore

func NewStore(key any) *Store

func (*Store) Inject

func (c *Store) Inject(ctx context.Context) context.Context

func (*Store) Load

func (c *Store) Load(key any) any

func (*Store) Remove

func (c *Store) Remove(key any) any

func (*Store) Save

func (c *Store) Save(key any, value any)

func (*Store) Swap

func (c *Store) Swap(key any, value any) any

Jump to

Keyboard shortcuts

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