allow

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package allow provides a client-allowed middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Allow

func Allow(cidrs ...string) (middleware.Middleware, error)

Allowlist returns a new middleware named "allow" that only allows the request that the client ip is contained in the given cidrs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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