method
Store.AllowAuthAttempt
Public method Store.AllowAuthAttempt from github.com/riducms/ridu/adapters/mongodb.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
keyHash | string | The keyHash value. |
now | time.Time | The now value. |
window | time.Duration | The window value. |
maximum | int | The 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)Related types
StoreA replica-set implementation of Ridu’s document, snapshot, auth, preference, task, lock, upload, readiness, and migration contracts.