MCPcopy Create free account
hub / github.com/astercloud/aster / MatchEvent

Method MatchEvent

pkg/memory/logic/matcher.go:12–12  ·  view source on GitHub ↗

MatchEvent 从事件中识别 Memory 返回识别出的 Memory 列表(可能为空)

(ctx context.Context, event Event)

Source from the content-addressed store, hash-verified

10 // MatchEvent 从事件中识别 Memory
11 // 返回识别出的 Memory 列表(可能为空)
12 MatchEvent(ctx context.Context, event Event) ([]*LogicMemory, error)
13
14 // SupportedEventTypes 返回支持的事件类型列表
15 // 用于 Manager 筛选事件,避免不必要的调用

Callers 1

ProcessEventMethod · 0.65

Implementers 4

testPatternMatcherpkg/middleware/logic_memory_test.go
NoopMatcherpkg/memory/logic/matcher.go
testMatcherpkg/memory/logic/manager_test.go
WritingPatternMatcherexamples/logic-memory/main.go

Calls

no outgoing calls

Tested by

no test coverage detected