limiter

package
v0.0.0-...-7e9a881 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestLimitObject

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

func NewRequestLimitService

func NewRequestLimitService(maxCnt int) *RequestLimitObject

func (*RequestLimitObject) Delete

func (p *RequestLimitObject) Delete()

func (*RequestLimitObject) GetCount

func (p *RequestLimitObject) GetCount() int

func (*RequestLimitObject) GetMax

func (p *RequestLimitObject) GetMax() int

func (*RequestLimitObject) Increase

func (p *RequestLimitObject) Increase()

func (*RequestLimitObject) IsAvailable

func (p *RequestLimitObject) IsAvailable() bool

func (*RequestLimitObject) Reduce

func (p *RequestLimitObject) Reduce()

Jump to

Keyboard shortcuts

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