MCPcopy
hub / github.com/fagongzi/manba / Filter

Interface Filter

pkg/filter/filter.go:54–61  ·  view source on GitHub ↗

Filter filter interface

Source from the content-addressed store, hash-verified

52
53// Filter filter interface
54type Filter interface {
55 Name() string
56 Init(cfg string) error
57
58 Pre(c Context) (statusCode int, err error)
59 Post(c Context) (statusCode int, err error)
60 PostErr(c Context)
61}
62
63// BaseFilter base filter support default implemention
64type BaseFilter struct{}

Callers 23

doPreFiltersMethod · 0.65
initFiltersMethod · 0.65
createClusterFunction · 0.65
updateClusterFunction · 0.65
initFiltersMethod · 0.65
doPreFiltersMethod · 0.65
PreMethod · 0.65
PreMethod · 0.65
PreMethod · 0.65
PreMethod · 0.65
PreMethod · 0.65
PreMethod · 0.65

Implementers 2

CircuitBreakeFilterpkg/proxy/filter_circuit_breaker.go
AnalysisFilterpkg/proxy/filter_analysis.go

Calls

no outgoing calls

Tested by

no test coverage detected