underattack

package
v0.0.0-...-be0a679 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(maxAge int) echo.MiddlewareFunc

Types

type Config

type Config struct {
	On          bool
	IPWhitelist string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) FromStore

func (c *Config) FromStore(r echo.H) *Config

func (*Config) IsAllowed

func (c *Config) IsAllowed(ctx echo.Context) bool

Jump to

Keyboard shortcuts

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