selector

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: AGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ParseExpr added in v0.2.0

func ParseExpr(str string) (string, error)

func ParseLookup added in v0.2.0

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