match

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMatcher

func AddMatcher(m Matcher)

AddMatcher 添加一个匹配器

func Ignored

func Ignored(request []byte) bool

Ignored 判断一段数据是否需要忽略

Types

type FuncMatcher

type FuncMatcher func(request []byte) bool

func (FuncMatcher) Ignore

func (m FuncMatcher) Ignore(request []byte) bool

type Matcher

type Matcher interface {
	Ignore(request []byte) bool
}

Jump to

Keyboard shortcuts

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