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

Method SetProviders

sdk/access/manager.go:21–30  ·  view source on GitHub ↗

SetProviders replaces the active provider list.

(providers []Provider)

Source from the content-addressed store, hash-verified

19
20// SetProviders replaces the active provider list.
21func (m *Manager) SetProviders(providers []Provider) {
22 if m == nil {
23 return
24 }
25 cloned := make([]Provider, len(providers))
26 copy(cloned, providers)
27 m.mu.Lock()
28 m.providers = cloned
29 m.mu.Unlock()
30}
31
32// Providers returns a snapshot of the active providers.
33func (m *Manager) Providers() []Provider {

Callers 4

ApplyAccessProvidersFunction · 0.80
ShutdownMethod · 0.80
BuildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected