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

Method filter

pkg/session/inmemory.go:403–414  ·  view source on GitHub ↗
(predicate func(*Event) bool)

Source from the content-addressed store, hash-verified

401}
402
403func (e *inMemoryEvents) filter(predicate func(*Event) bool) []Event {
404 e.mu.RLock()
405 defer e.mu.RUnlock()
406
407 var results []Event
408 for _, evt := range e.events {
409 if predicate(evt) {
410 results = append(results, *evt)
411 }
412 }
413 return results
414}

Callers 15

SessionsFunction · 0.80
EvaluationsFunction · 0.80
TracesFunction · 0.80
AgentsFunction · 0.80
BenchmarksFunction · 0.80
EventsFunction · 0.80
toggleChannelFunction · 0.80
toggleEventTypeFunction · 0.80
GetEventsMethod · 0.80
todos.tsFile · 0.80
clearCompletedTodosFunction · 0.80
tools.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected