interface
PreferenceStore
Persist opaque per-user application/admin settings.
Properties
| Property | Type | Description |
|---|---|---|
GetPreference | func(context.Context, | The GetPreference value. |
SetPreference | func(context.Context, | The SetPreference value. |
DeletePreference | func(context.Context, | The DeletePreference value. |
DeletePreferences | func(context.Context, | The DeletePreferences value. |
How it works
The contract supports both key-scoped deletion and resetting one identity.
Full signature
type PreferenceStore interface {
GetPreference(context.Context, schema.StableID, string, string) (Preference, error)
SetPreference(context.Context, Preference) (Preference, error)
DeletePreference(context.Context, schema.StableID, string, string) error
DeletePreferences(context.Context, schema.StableID, string) error
}