bypass

package
v0.0.0-...-f06f3bb Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 2 Imported by: 50

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bypass

type Bypass interface {
	// Contains reports whether the bypass includes addr.
	IsWhitelist() bool
	Contains(ctx context.Context, network, addr string, opts ...Option) bool
}

Bypass is a filter of address (IP or domain).

func BypassGroup

func BypassGroup(bypasses ...Bypass) Bypass

type Option

type Option func(opts *Options)

func WithHostOpton

func WithHostOpton(host string) Option

func WithPathOption

func WithPathOption(path string) Option

type Options

type Options struct {
	Host string
	Path string
}

Jump to

Keyboard shortcuts

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