bypass

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 2 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBypass

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

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

func BypassGroup

func BypassGroup(bypasses ...IBypass) IBypass

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