Documentation
¶
Overview ¶
Package tokenstore provides an in-memory registry of ephemeral runtime tokens. Each registered value is keyed by an opaque token that expires after a fixed TTL, with a background loop reaping expired entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a TTL-bounded registry mapping opaque tokens to their backing values.
func (*Store) Register ¶
Register stores value under a freshly generated token and returns the token.
Click to show internal directories.
Click to hide internal directories.