ctxstore

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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)

func Save

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

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)

func (*Store) Save

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

Jump to

Keyboard shortcuts

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