Documentation
¶
Overview ¶
Package echo provides rate limiting middleware for the Echo v4 web framework. It features IP spoofing protection with trusted proxy CIDR filtering and custom key extraction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractClientIP ¶
ExtractClientIP mengekstrak IP client secara aman dari Echo Context.
Types ¶
type Option ¶
type Option func(*Config)
func WithKeyFunc ¶
WithKeyFunc kustomisasi fungsi penentuan key rate limit berdasarkan Echo Context.
func WithRouteLabeling ¶ added in v1.2.0
WithRouteLabeling enables passing the Echo route path pattern (e.g. /api/v1/users/:id) as the route label in telemetry events.
func WithTrustedProxies ¶
WithTrustedProxies menentukan daftar IP/CIDR proxy yang dipercayai untuk membaca X-Forwarded-For.
Click to show internal directories.
Click to hide internal directories.