middleware

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORS

type CORS struct{}

func NewCORS

func NewCORS() *CORS

func (*CORS) Apply

func (*CORS) Apply(origin string) gin.HandlerFunc

type Logger

type Logger struct{}

func NewLogger

func NewLogger() *Logger

func (*Logger) Apply

func (l *Logger) Apply() gin.HandlerFunc

type RateLimitter

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

func NewRateLimitter

func NewRateLimitter(r *repo.Repository) *RateLimitter

func (*RateLimitter) Apply

func (m *RateLimitter) Apply(tier string, limit int) gin.HandlerFunc

Jump to

Keyboard shortcuts

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