entry

package
v0.0.0-...-c8ac7db Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LimitInfo

type LimitInfo struct {
	LimitKey  string
	LimitFreq int64
	LimitNum  int64
}

type LimitWant

type LimitWant struct {
	LimitWantConfig *LimitWantConfig
	RedisClient     redis.Conn
}

type LimitWantConfig

type LimitWantConfig struct {
	LimitType uint8
}

type Limiter

type Limiter interface {
	Take(info *LimitInfo) (bool, error)
}

Jump to

Keyboard shortcuts

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