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

Source adapters/sqlite/auth.go:588

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