limit

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockLimit

type BlockLimit interface {
	Limit
	AddLimitCount(limitCount int)
}

BlockLimit 并发 + 限流

func NewBlockList

func NewBlockList(limitCount int) BlockLimit

type Limit

type Limit interface {
	Acquire(count int) *data.CodeError
	Release(count int)
}

Jump to

Keyboard shortcuts

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