ratelimit

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func NewCounter

func NewCounter(count int) *Counter

func (*Counter) Ack

func (this *Counter) Ack() bool

func (*Counter) Close

func (this *Counter) Close()

func (*Counter) Count

func (this *Counter) Count() int

func (*Counter) Len

func (this *Counter) Len() int

Len 已占用数量

func (*Counter) Release

func (this *Counter) Release()

Jump to

Keyboard shortcuts

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