filter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 2 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

Jump to

Keyboard shortcuts

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