lrurate

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName lru rate plugin
	PluginName = "lrurate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LRURate

type LRURate struct{}

LRURate Ratelimit

func (*LRURate) Allow

func (m *LRURate) Allow(rateType plugin.RatelimitType, id string) bool

Allow 实现CMDB插件接口

func (*LRURate) Destroy

func (m *LRURate) Destroy() error

Destroy 销毁函数

func (*LRURate) Initialize

func (m *LRURate) Initialize(c *plugin.ConfigEntry) error

Initialize 初始化函数

func (*LRURate) Name

func (m *LRURate) Name() string

Name 返回插件名

Jump to

Keyboard shortcuts

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