bypass

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(r *http.Request, cfgs []*Config) bool

Match matches HTTP URL to the bypass configuration.

Types

type Config

type Config struct {
	MatchType string `json:"match_type,omitempty" xml:"match_type,omitempty" yaml:"match_type,omitempty"`
	URI       string `json:"uri,omitempty" xml:"uri,omitempty" yaml:"uri,omitempty"`
	// contains filtered or unexported fields
}

Config contains the entry for the authorization bypass.

func (*Config) Validate

func (b *Config) Validate() error

Validate validates Config

Jump to

Keyboard shortcuts

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