filter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	// Filter :If ok is true, it means that the message can pass
	Filter(msg *protocol.Message) (*protocol.Message, bool)
}

type FilterChain

type FilterChain struct {
	// contains filtered or unexported fields
}

func NewFilterChain

func NewFilterChain() *FilterChain

func (*FilterChain) AddExcludeFilters

func (c *FilterChain) AddExcludeFilters(f Filter)

func (*FilterChain) AddIncludeFilter

func (c *FilterChain) AddIncludeFilter(f Filter)

func (*FilterChain) Filter

func (c *FilterChain) Filter(msg *protocol.Message) (*protocol.Message, bool)

type MethodExcludeFilter

type MethodExcludeFilter struct {
	// contains filtered or unexported fields
}

func NewMethodExcludeFilter

func NewMethodExcludeFilter(execlude string) *MethodExcludeFilter

func (*MethodExcludeFilter) Filter

Filter :If ok is true, it means that the message can pass

type MethodMatchIncludeFilter added in v0.0.2

type MethodMatchIncludeFilter struct {
	// contains filtered or unexported fields
}

func NewMethodMatchIncludeFilter added in v0.0.2

func NewMethodMatchIncludeFilter(expr string) *MethodMatchIncludeFilter

func (*MethodMatchIncludeFilter) Filter added in v0.0.2

Filter :If ok is true, it means that the message can pass

Jump to

Keyboard shortcuts

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