MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / JSFilter

Struct JSFilter

access/jsfilter.go:23–26  ·  view source on GitHub ↗

JSFilter is not suitable for concurrent use! Wrap it with filter pool for that!

Source from the content-addressed store, hash-verified

21// JSFilter is not suitable for concurrent use!
22// Wrap it with filter pool for that!
23type JSFilter struct {
24 funcPool chan JSFilterFunc
25 next Filter
26}
27
28func NewJSFilter(filename string, instances int, logger *clog.CondLogger, next Filter) (*JSFilter, error) {
29 script, err := os.ReadFile(filename)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected