Documentation ¶
Index ¶
- func EchoIdempotencyKeyExtractor(c echo.Context) (string, error)
- func EchoRemoteIPExtractor(c echo.Context) (string, error)
- func NewMiddleware(secret string) echo.MiddlewareFunc
- func NewMiddlewareWithConfig(secret string, cfg Config) echo.MiddlewareFunc
- type Config
- type IdempotencyKeyExtractorFunc
- type RemoteIPExtractorFunc
- type TurnstileResponseExtractorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EchoRemoteIPExtractor ¶
func NewMiddleware ¶
func NewMiddleware(secret string) echo.MiddlewareFunc
func NewMiddlewareWithConfig ¶
Types ¶
type Config ¶
type Config struct { Skipper echomiddleware.Skipper TurnstileVerifier turnstile.Verifier TurnstileResponseExtractorFunc TurnstileResponseExtractorFunc RemoteIPExtractorFunc RemoteIPExtractorFunc IdempotencyKeyExtractorFunc IdempotencyKeyExtractorFunc }
type RemoteIPExtractorFunc ¶
func CloudFlareRequestHeaderRemoteIPExtractor ¶
func CloudFlareRequestHeaderRemoteIPExtractor() RemoteIPExtractorFunc
type TurnstileResponseExtractorFunc ¶
func RequestHeaderTurnstileResponseExtractorFunc ¶
func RequestHeaderTurnstileResponseExtractorFunc() TurnstileResponseExtractorFunc
func RequestHeaderTurnstileResponseExtractorFuncWithHeaderName ¶
func RequestHeaderTurnstileResponseExtractorFuncWithHeaderName(headerName string) TurnstileResponseExtractorFunc
Click to show internal directories.
Click to hide internal directories.