Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
// Get returns the installation ID for the given key. ok is false on
// cache miss or if the backend is unreachable (callers fall back to
// round-robin).
Get(ctx context.Context, key string) (installationID int64, ok bool, err error)
// Put persists a mapping. scope, identity, and subject are stored by
// backends that support operator debuggability (e.g. Firestore);
// backends that do not need them may ignore them.
Put(ctx context.Context, key string, installationID int64, scope, identity, subject string) error
}
Store persists sticky (scope, identity) -> installation ID mappings for checks:write policies. Implementations must be safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.