method

Store.GetPreference

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

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

Source adapters/mongodb/preferences.go:18

@param ctx
The ctx value.
@param collectionID
The collectionID value.
@param userID
The userID value.
@param key
The key value.
@returns
The declared result.

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.