ratelimit

package
v0.1.49 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MappedRateLimiter

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

func NewMappedRateLimiter

func NewMappedRateLimiter(c *config.RateLimitConfig) (*MappedRateLimiter, error)

func (*MappedRateLimiter) RateLimit

func (m *MappedRateLimiter) RateLimit(subscriber mangos.Socket, publisher mangos.Socket)

type RateLimiter

type RateLimiter interface {
	RateLimit(subscriber mangos.Socket, publisher mangos.Socket)
}

Jump to

Keyboard shortcuts

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