MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / activeRecordsFromSnapshot

Method activeRecordsFromSnapshot

internal/pluginhost/snapshot.go:49–60  ·  view source on GitHub ↗
(snap *Snapshot)

Source from the content-addressed store, hash-verified

47}
48
49func (h *Host) activeRecordsFromSnapshot(snap *Snapshot) []capabilityRecord {
50 if snap == nil || len(snap.records) == 0 {
51 return nil
52 }
53 out := make([]capabilityRecord, 0, len(snap.records))
54 for _, record := range snap.records {
55 if h.recordCurrent(record) {
56 out = append(out, record)
57 }
58 }
59 return out
60}
61
62// RegisteredPlugins returns a stable copy of plugin metadata in the current runtime snapshot.
63func (h *Host) RegisteredPlugins() []RegisteredPluginInfo {

Callers 3

RegisterModelsMethod · 0.95
RegisterExecutorsMethod · 0.95
activeRecordsMethod · 0.95

Calls 1

recordCurrentMethod · 0.95

Tested by

no test coverage detected