singleflight

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(delegate dispatch.Dispatcher, handler keys.Handler) dispatch.Dispatcher

Types

type Dispatcher

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

func (*Dispatcher) Close

func (d *Dispatcher) Close() error

func (*Dispatcher) DispatchCheck

func (*Dispatcher) DispatchExpand

func (*Dispatcher) DispatchLookupResources2 added in v1.35.0

func (d *Dispatcher) DispatchLookupResources2(req *v1.DispatchLookupResources2Request, stream dispatch.LookupResources2Stream) error

func (*Dispatcher) DispatchLookupResources3 added in v1.45.4

func (d *Dispatcher) DispatchLookupResources3(req *v1.DispatchLookupResources3Request, stream dispatch.LookupResources3Stream) error

func (*Dispatcher) DispatchLookupSubjects

func (d *Dispatcher) DispatchLookupSubjects(req *v1.DispatchLookupSubjectsRequest, stream dispatch.LookupSubjectsStream) error

func (*Dispatcher) DispatchQueryPlan added in v1.52.0

func (d *Dispatcher) DispatchQueryPlan(req *v1.DispatchQueryPlanRequest, stream dispatch.PlanStream) error

func (*Dispatcher) LookupPlanCheck added in v1.54.0

func (d *Dispatcher) LookupPlanCheck(ctx context.Context, lookup dispatch.PlanCheckLookup) (*v1.ResultPath, bool, error)

LookupPlanCheck is a passthrough — singleflight provides no cache of its own; it just deduplicates concurrent identical Plan-Check dispatches. The delegate (typically a caching.Dispatcher) is the actual cache holder.

func (*Dispatcher) ReadyState

func (d *Dispatcher) ReadyState() dispatch.ReadyState

Jump to

Keyboard shortcuts

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