filter

package
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConfigFilter

func RegisterConfigFilter(chain IConfigFilterChain, filter IConfigFilter) error

Types

type DefaultConfigEncryptionFilter

type DefaultConfigEncryptionFilter struct {
}

func (*DefaultConfigEncryptionFilter) DoFilter

func (d *DefaultConfigEncryptionFilter) DoFilter(param *vo.ConfigParam) error

func (*DefaultConfigEncryptionFilter) GetFilterName

func (d *DefaultConfigEncryptionFilter) GetFilterName() string

func (*DefaultConfigEncryptionFilter) GetOrder

func (d *DefaultConfigEncryptionFilter) GetOrder() int

type DefaultConfigFilterChainManager

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

func (*DefaultConfigFilterChainManager) AddFilter

func (*DefaultConfigFilterChainManager) DoFilterByName

func (m *DefaultConfigFilterChainManager) DoFilterByName(param *vo.ConfigParam, name string) error

func (*DefaultConfigFilterChainManager) DoFilters

func (m *DefaultConfigFilterChainManager) DoFilters(param *vo.ConfigParam) error

func (*DefaultConfigFilterChainManager) GetFilters

type IConfigFilter

type IConfigFilter interface {
	DoFilter(*vo.ConfigParam) error
	GetOrder() int
	GetFilterName() string
}

func GetDefaultConfigEncryptionFilter

func GetDefaultConfigEncryptionFilter() IConfigFilter

type IConfigFilterChain

type IConfigFilterChain interface {
	AddFilter(IConfigFilter) error
	GetFilters() []IConfigFilter
	DoFilters(*vo.ConfigParam) error
	DoFilterByName(*vo.ConfigParam, string) error
}

func GetDefaultConfigFilterChainManager

func GetDefaultConfigFilterChainManager() IConfigFilterChain

Jump to

Keyboard shortcuts

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