ratelimit

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareBuilder

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

func NewMiddlewareBuilder

func NewMiddlewareBuilder(limiter ratelimit.Limiter, l logger.Logger) *MiddlewareBuilder

func (*MiddlewareBuilder) Build

func (b *MiddlewareBuilder) Build() gin.HandlerFunc

func (*MiddlewareBuilder) Prefix

func (b *MiddlewareBuilder) Prefix(prefix string) *MiddlewareBuilder

Jump to

Keyboard shortcuts

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