queryidentity

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authority

type Authority[O comparable] struct {
	// contains filtered or unexported fields
}

Authority owns opaque query identities for one render session.

func NewAuthority

func NewAuthority[O comparable](owner O) *Authority[O]

NewAuthority creates an isolated query-identity owner.

func (*Authority[O]) Lookup

func (a *Authority[O]) Lookup(owner O, key incremental.QueryKey) (Fields, bool)

Lookup returns fields only for the current authenticated generation of key.

func (*Authority[O]) Register

func (a *Authority[O]) Register(owner O, key incremental.QueryKey, fields Fields) bool

Register replaces the current generation for key with a distinct exact identity.

type Fields

type Fields struct {
	Component string
	Source    string
	Namespace string
	Name      string
}

Fields are the exact values encoded by one component query key.

Jump to

Keyboard shortcuts

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