Documentation ¶
Index ¶
- func Clear(ctx context.Context, remoteClient *remotecache.Client, endpoint string) error
- func Endpoint(ctx context.Context, endpoint string, rateLimit int, anonymousOnly bool) error
- func Middleware() gin.HandlerFunc
- func Remote(ctx context.Context, remoteClient *remotecache.Client, endpoint string, ...) error
- type RateLimit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() gin.HandlerFunc
Middleware protects the API globally from anonymous requests
Types ¶
Click to show internal directories.
Click to hide internal directories.