ratelimit

package
v0.0.0-...-f3124ab Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 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 Builder

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

func NewBuilder

func NewBuilder(cmd redis.Cmdable, interval time.Duration, rate int) *Builder

func (*Builder) Build

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

func (*Builder) Prefix

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

Jump to

Keyboard shortcuts

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