package
0.0.3
Repository: https://github.com/bigbigliu/go-core.git
Documentation: pkg.go.dev

# Functions

CorsMiddleware 跨域中间件.
GinLogger gin 日志请求中间件.
IPFilterMiddleware 中间件用于过滤IP并限制请求频率 maxRequestsPerIP ip请求阈值 example:200 timeWindow 统计时间 example: 1*time.Minute.
IPFilterWithRedisMiddleware 中间件用于过滤IP并限制请求频率(redis).
RequestIDMiddleware requestID请求中间件.
TimeoutMiddleware 接口超时中间件.
TimeoutResponse 超时响应.

# Structs

IPCounter 用于记录IP请求计数和时间.
IPCounterWithRedis 用于记录IP请求计数和时间.