interface
PreferenceStore
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
}Persist opaque per-user application/admin settings.
GetPreferencefunc(context.Context, schema.StableID, string, string) (Preference, error)- The GetPreference value.
SetPreferencefunc(context.Context, Preference) (Preference, error)- The SetPreference value.
DeletePreferencefunc(context.Context, schema.StableID, string, string) error- The DeletePreference value.
DeletePreferencesfunc(context.Context, schema.StableID, string) error- The DeletePreferences value.
The contract supports both key-scoped deletion and resetting one identity.