internal

package
v0.0.0-...-dd1392d Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limit

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

func NewLimit

func NewLimit(maxRequest int, duration time.Duration) *Limit

func (*Limit) RateLimit

func (l *Limit) RateLimit(ctx context.Context) error

type Limits

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

func NewLimits

func NewLimits(args ...*Limit) *Limits

func (*Limits) RateLimit

func (l *Limits) RateLimit(ctx context.Context) error

Jump to

Keyboard shortcuts

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