ratelimit

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: AGPL-3.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 GORMOptions

type GORMOptions struct {
	DB    *gorm.DB
	Rate  time.Duration
	Limit uint
}

type GORMStore

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

func NewGORMStore

func NewGORMStore(options *GORMOptions) *GORMStore

func (*GORMStore) Limit

func (s *GORMStore) Limit(key string, c *gin.Context) (ret ratelimit.Info)

Jump to

Keyboard shortcuts

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