method

Store.AllowAuthAttempt

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
keyHashstringThe keyHash value.
nowtime.TimeThe now value.
windowtime.DurationThe window value.
maximumintThe maximum value.

Returns

The declared result.

(bool, error)

Full signature

func (backend *Store) AllowAuthAttempt( ctx context.Context, keyHash string, now time.Time, window time.Duration, maximum int, ) (bool, error)

Source adapters/mongodb/auth_maintenance.go:152

Related types

  • Store

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