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

Method Snapshot

internal/pluginhost/host.go:132–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130}
131
132func (h *Host) Snapshot() *Snapshot {
133 if h == nil {
134 return emptySnapshot()
135 }
136 raw := h.snapshot.Load()
137 if snap, ok := raw.(*Snapshot); ok && snap != nil {
138 return snap
139 }
140 return emptySnapshot()
141}
142
143// PluginLoaded reports whether a plugin dynamic library is still loaded by the host.
144func (h *Host) PluginLoaded(id string) bool {

Calls 2

emptySnapshotFunction · 0.85
LoadMethod · 0.65