srv_limit

package
v0.0.0-...-2816995 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecLimit

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

每秒限制

func (*SecLimit) Check

func (p *SecLimit) Check(nowTime int64) int

func (*SecLimit) Count

func (p *SecLimit) Count(nowTime int64) (curCount int)

当前秒的访问次数

Jump to

Keyboard shortcuts

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