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/postgres.

Source adapters/postgres/auth.go:562

@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 PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.