method

Store.RotateSession

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
currentHashstringThe currentHash value.
replacementstore.AuthSessionThe replacement value.
nowtime.TimeThe now value.

Returns

The declared result.

error

Full signature

func (backend *Store) RotateSession( ctx context.Context, currentHash string, replacement store.AuthSession, now time.Time, ) error

Source adapters/mongodb/auth_sessions.go:116

Related types

  • Store

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

  • AuthSession

    A persisted opaque session digest and safe metadata.