MCPcopy
hub / github.com/openfga/openfga / Selector

Interface Selector

internal/planner/interface.go:10–13  ·  view source on GitHub ↗

Selector defines the interface for managing strategy selection and stats for a single key.

Source from the content-addressed store, hash-verified

8
9// Selector defines the interface for managing strategy selection and stats for a single key.
10type Selector interface {
11 Select(resolvers map[string]*PlanConfig) *PlanConfig
12 UpdateStats(plan *PlanConfig, duration time.Duration)
13}
14
15// Manager defines the interface for creating and managing plans for different keys.
16type Manager interface {

Callers 16

readMethod · 0.65
ReadUserTupleMethod · 0.65
ReadUsersetTuplesMethod · 0.65
ReadStartingWithUserMethod · 0.65
GetStoreMethod · 0.65
TestProfiler_UpdateFunction · 0.65
profiledCheckHandlerMethod · 0.65

Implementers 3

keyPlaninternal/planner/plan.go
MockSelectorinternal/mocks/mock_planner.go
MockSelectorMockRecorderinternal/mocks/mock_planner.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…