access

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlwaysAllow

type AlwaysAllow struct{}

func (AlwaysAllow) Access

func (_ AlwaysAllow) Access(_ context.Context, _ *http.Request, _, _, _ string) error

type DstAddrFilter

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

func NewDstAddrFilter

func NewDstAddrFilter(prefixes []netip.Prefix, next Filter) DstAddrFilter

func (DstAddrFilter) Access

func (f DstAddrFilter) Access(ctx context.Context, req *http.Request, username, network, address string) error

type ErrDestinationAddressNotAllowed

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

func (ErrDestinationAddressNotAllowed) Error

type Filter

type Filter interface {
	Access(ctx context.Context, req *http.Request, username, network, address string) error
}

Jump to

Keyboard shortcuts

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