method

Store.GetPreference

Public method Store.GetPreference from github.com/riducms/ridu/adapters/mongodb.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionIDschema.StableIDThe collectionID value.
userIDstringThe userID value.
keystringThe key value.

Returns

The declared result.

(store.Preference, error)

Full signature

func (backend *Store) GetPreference( ctx context.Context, collectionID schema.StableID, userID, key string, ) (store.Preference, error)

Source adapters/mongodb/preferences.go:18

Related types

  • Store

    A replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.

  • StableID

    A deterministic identifier for schema evolution.

  • Preference

    One opaque per-user setting.