activelimit

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder 活跃连接限制中间件构建器

func NewBuilder

func NewBuilder(maxActive int64) *Builder

NewBuilder 创建活跃连接限制中间件构建器 maxActive: 最大允许的同时活跃连接数

func (*Builder) Build

func (b *Builder) Build() gin.HandlerFunc

Build 构建中间件

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL