filters

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 15 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(m *types.Message) *errors.DispatchError
	Name() string
}

func NewLastFilter

func NewLastFilter(pools map[string]*goroutinepool.GoroutinePool, subscribers map[string]subscriber.Subscriber) Filter

func NewRegisterFilter

func NewRegisterFilter(r register.Register) Filter

func NewUnifyLabelsFilter

func NewUnifyLabelsFilter() Filter

func NewWebhookFilter

func NewWebhookFilter() (Filter, error)

type LastFilter

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

Filter的最后一个,实际上用来做后续对 message 的操作

func (*LastFilter) Filter

func (l *LastFilter) Filter(m *types.Message) *errors.DispatchError

func (*LastFilter) Name

func (l *LastFilter) Name() string

type RegisterFilter

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

func (*RegisterFilter) Filter

func (*RegisterFilter) Name

func (*RegisterFilter) Name() string

type UnifyLabelsFilter

type UnifyLabelsFilter struct{}

func (*UnifyLabelsFilter) Filter

func (*UnifyLabelsFilter) Name

func (*UnifyLabelsFilter) Name() string

type WebhookFilter

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

func (*WebhookFilter) Filter

func (*WebhookFilter) Name

func (*WebhookFilter) Name() string

Jump to

Keyboard shortcuts

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