method

Store.AllowAuthAttempt

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

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

Source adapters/mongodb/auth_maintenance.go:152

@param ctx
The ctx value.
@param keyHash
The keyHash value.
@param now
The now value.
@param window
The window value.
@param maximum
The maximum 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.