MCPcopy Index your code
hub / github.com/Shopify/toxiproxy / Get

Method Get

proxy_collection.go:128–133  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

126}
127
128func (collection *ProxyCollection) Get(name string) (*Proxy, error) {
129 collection.RLock()
130 defer collection.RUnlock()
131
132 return collection.getByName(name)
133}
134
135func (collection *ProxyCollection) Remove(name string) error {
136 collection.Lock()

Callers 15

TestAddProxyToCollectionFunction · 0.95
RoutesMethod · 0.80
ProxyShowMethod · 0.80
ProxyUpdateMethod · 0.80
ToxicIndexMethod · 0.80
ToxicCreateMethod · 0.80
ToxicShowMethod · 0.80
ToxicUpdateMethod · 0.80
ToxicDeleteMethod · 0.80
prometheusOutputFunction · 0.80

Calls 1

getByNameMethod · 0.95

Tested by 9

TestAddProxyToCollectionFunction · 0.76
prometheusOutputFunction · 0.64
TestClient_HeadersFunction · 0.64
BenchmarkDirectFunction · 0.64
BenchmarkProxyFunction · 0.64
BenchmarkDirectSmallFunction · 0.64
BenchmarkProxySmallFunction · 0.64