method

Store.AllowAuthAttempt

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

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/postgres/auth.go:609

Related types

  • Store

    A PostgreSQL implementation of Ridu’s document, snapshot, auth, preference, task, job, lock, upload-reference, and migration store contracts.