selector

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NSLOOKUP_PREFIX = "nslookup("
View Source
const NSLOOKUP_SUFFIX = ")"

Variables

This section is empty.

Functions

func ParseExpr added in v1.0.1

func ParseExpr(str string) (string, error)

func ParseLookup added in v1.0.1

func ParseLookup(hostname string) (string, error)

Types

type Selector

type Selector struct {
	RequestAttr string
	SubAttr     string
	Regexp      *regexp.Regexp
	Negate      bool
}

func Parse

func Parse(str string) (*Selector, error)

func (*Selector) Match

func (s *Selector) Match(ctx *fasthttp.RequestCtx) (string, bool)

Jump to

Keyboard shortcuts

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