Documentation ¶
Index ¶
Constants ¶
View Source
const (
HeaderToMetadata = "header_to_metadata"
)
Stream Filter's Name
Variables ¶
Functions ¶
func CreateFilterFactory ¶
func CreateFilterFactory(conf map[string]interface{}) (api.StreamFilterChainFactory, error)
CreateFilterFactory for create HeaderToMetadata filter factory
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func NewFilter ¶
func NewFilter(factory *FilterFactory) *Filter
func (*Filter) SetReceiveFilterHandler ¶
func (f *Filter) SetReceiveFilterHandler(handler api.StreamReceiverFilterHandler)
type FilterFactory ¶
type FilterFactory struct {
Rules []Rule `json:"request_rules"`
}
func (*FilterFactory) CreateFilterChain ¶
func (f *FilterFactory) CreateFilterChain(context context.Context, callbacks api.StreamFilterChainFactoryCallbacks)
CreateFilterChain for create HeaderToMetadata filter
Click to show internal directories.
Click to hide internal directories.