bypass

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 2 Imported by: 60

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