method

Store.AllowAuthAttempt

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

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/sqlite/auth.go:598

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.