filterconfigs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBytes

func ToBytes(input interface{}) []byte

将输入内容转换为字节

func ToString

func ToString(input interface{}) string

将输入内容转换为字符串

Types

type Base64DecodeFilter

type Base64DecodeFilter struct {
}

func (*Base64DecodeFilter) Do

func (this *Base64DecodeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

func (*Base64DecodeFilter) Init

func (this *Base64DecodeFilter) Init() error

type Base64EncodeFilter

type Base64EncodeFilter struct {
}

func (*Base64EncodeFilter) Do

func (this *Base64EncodeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

func (*Base64EncodeFilter) Init

func (this *Base64EncodeFilter) Init() error

type Dec2HexFilter

type Dec2HexFilter struct {
}

func (*Dec2HexFilter) Do

func (this *Dec2HexFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*Dec2HexFilter) Init

func (this *Dec2HexFilter) Init() error

初始化

type FilterInterface

type FilterInterface interface {
	// 初始化
	Init() error

	// 执行过滤
	Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)
}

过滤接口

func FindFilter

func FindFilter(code string) FilterInterface

查找Filter

type HTMLEscapeFilter

type HTMLEscapeFilter struct {
}

func (*HTMLEscapeFilter) Do

func (this *HTMLEscapeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*HTMLEscapeFilter) Init

func (this *HTMLEscapeFilter) Init() error

初始化

type HTMLUnescapeFilter

type HTMLUnescapeFilter struct {
}

func (*HTMLUnescapeFilter) Do

func (this *HTMLUnescapeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*HTMLUnescapeFilter) Init

func (this *HTMLUnescapeFilter) Init() error

初始化

type Hex2DecFilter

type Hex2DecFilter struct {
}

func (*Hex2DecFilter) Do

func (this *Hex2DecFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*Hex2DecFilter) Init

func (this *Hex2DecFilter) Init() error

初始化

type LengthFilter

type LengthFilter struct {
}

func (*LengthFilter) Do

func (this *LengthFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*LengthFilter) Init

func (this *LengthFilter) Init() error

初始化

type Md5Filter

type Md5Filter struct {
}

func (*Md5Filter) Do

func (this *Md5Filter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

func (*Md5Filter) Init

func (this *Md5Filter) Init() error

type Sha1Filter

type Sha1Filter struct {
}

func (*Sha1Filter) Do

func (this *Sha1Filter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*Sha1Filter) Init

func (this *Sha1Filter) Init() error

初始化

type Sha256Filter

type Sha256Filter struct {
}

func (*Sha256Filter) Do

func (this *Sha256Filter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*Sha256Filter) Init

func (this *Sha256Filter) Init() error

初始化

type URLDecodeFilter

type URLDecodeFilter struct {
}

func (*URLDecodeFilter) Do

func (this *URLDecodeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

func (*URLDecodeFilter) Init

func (this *URLDecodeFilter) Init() error

type URLEncodeFilter

type URLEncodeFilter struct {
}

func (*URLEncodeFilter) Do

func (this *URLEncodeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

func (*URLEncodeFilter) Init

func (this *URLEncodeFilter) Init() error

type UnicodeDecodeFilter

type UnicodeDecodeFilter struct {
}

func (*UnicodeDecodeFilter) Do

func (this *UnicodeDecodeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*UnicodeDecodeFilter) Init

func (this *UnicodeDecodeFilter) Init() error

初始化

type UnicodeEncodeFilter

type UnicodeEncodeFilter struct {
}

func (*UnicodeEncodeFilter) Do

func (this *UnicodeEncodeFilter) Do(input interface{}, options interface{}) (output interface{}, goNext bool, err error)

执行过滤

func (*UnicodeEncodeFilter) Init

func (this *UnicodeEncodeFilter) Init() error

初始化

Jump to

Keyboard shortcuts

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