Help us shape the future of Go! Take the 2026 Go Developer Survey

scope

package
v0.0.0-...-c703685 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key[T any] struct {
	// contains filtered or unexported fields
}

Key grants access to one module-owned typed entry. Keep keys private to their module and do not copy them after use. The byte gives even zero-sized T keys distinct addresses. State is initialized to T's zero value on first access.

func (*Key[T]) Value

func (k *Key[T]) Value(store *Store) *T

type Retained

type Retained struct {
	Directory string
	Namespace string
	Thread    string
}

Retained identifies the host-selected durable session. Values identify scope; authentication and the invoking caller's authority remain with the host.

type Store

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

Store owns memory for one application scope. Its zero value is ready for use. The application serializes access and replaces the store when the scope ends. Do not copy a store after use.

Jump to

Keyboard shortcuts

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