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

Function Current

internal/home/global.go:13–20  ·  view source on GitHub ↗

Current returns the active home client instance, if any.

()

Source from the content-addressed store, hash-verified

11
12// Current returns the active home client instance, if any.
13func Current() *Client {
14 if v := currentClient.Load(); v != nil {
15 if client, ok := v.(*Client); ok {
16 return client
17 }
18 }
19 return nil
20}
21
22// ClearCurrent removes the active home client.
23func ClearCurrent() {

Callers 7

request_logger.goFile · 0.92
loadHomeModelEntriesMethod · 0.92
home_refresh.goFile · 0.92
conductor.goFile · 0.92
CurrentKVClientFunction · 0.85

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected