Documentation
¶
Index ¶
- Variables
- func FeedMiddleware(rc *cache.Client, service gin.HandlerFunc, empty interface{}) gin.HandlerFunc
- func Init()
- func NewRateLimiter(redisClient *cache.Client, key string, limit int, slidingWindow time.Duration) gin.HandlerFunc
- func PublishMiddleware(rc *cache.Client, service gin.HandlerFunc, empty interface{}) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FeedMiddleware ¶
func FeedMiddleware(rc *cache.Client, service gin.HandlerFunc, empty interface{}) gin.HandlerFunc
FeedMiddleware feed 缓存装饰器
func NewRateLimiter ¶
func PublishMiddleware ¶
func PublishMiddleware(rc *cache.Client, service gin.HandlerFunc, empty interface{}) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.