Documentation
¶
Overview ¶
Package ratelimit defines the rate-limit integration point of Auth-All. Auth-All does not require a specific backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LimiterFunc ¶
LimiterFunc adapts a function to the Limiter interface.
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is an in-process fixed-window limiter.
Memory is for local development and tests only. It is not sufficient for a distributed production deployment because each process keeps its own counters.
type Operation ¶
type Operation string
Operation names a sensitive flow.
const ( OpSignIn Operation = "sign-in" OpSignUp Operation = "sign-up" OpPasswordForgot Operation = "password-forgot" OpEmailVerify Operation = "email-verification-send" OpMagicLinkRequest Operation = "magic-link-request" OpPasswordChange Operation = "password-change" OpEmailChange Operation = "email-change" OpUserDelete Operation = "user-delete" )
Sensitive operations.
Click to show internal directories.
Click to hide internal directories.