Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultServer ¶
func DefaultServer(conf *config.ServerConfig) *gin.Engine
func ServerReqMetric ¶
func ServerReqMetric() gin.HandlerFunc
Types ¶
type JSON ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
RateLimiter bbr middleware.
func NewRateLimiter ¶
func NewRateLimiter(conf *bbr.Config) (s *RateLimiter)
NewRateLimiter return a ratelimit middleware.
func (*RateLimiter) Limit ¶
func (b *RateLimiter) Limit() gin.HandlerFunc
Limit return a bm handler func.
Click to show internal directories.
Click to hide internal directories.