http

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 4 Imported by: 10

Documentation

Index

Constants

View Source
const BindingRateLimiter = "goravel.rate_limiter"

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimiter added in v1.10.0

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

func NewRateLimiter added in v1.10.0

func NewRateLimiter() *RateLimiter

func (*RateLimiter) For added in v1.10.0

func (r *RateLimiter) For(name string, callback func(ctx http.Context) http.Limit)

func (*RateLimiter) ForWithLimits added in v1.10.0

func (r *RateLimiter) ForWithLimits(name string, callback func(ctx http.Context) []http.Limit)

func (*RateLimiter) Limiter added in v1.10.0

func (r *RateLimiter) Limiter(name string) func(ctx http.Context) []http.Limit

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (http *ServiceProvider) Boot(app foundation.Application)

func (*ServiceProvider) Register

func (http *ServiceProvider) Register(app foundation.Application)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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