MCPcopy
hub / github.com/CodisLabs/codis / newProxyConfig

Function newProxyConfig

pkg/proxy/proxy_test.go:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func newProxyConfig() *Config {
21 config := NewDefaultConfig()
22 config.ProxyAddr = "0.0.0.0:0"
23 config.AdminAddr = "0.0.0.0:0"
24 config.ProxyHeapPlaceholder = 0
25 config.ProxyMaxOffheapBytes = 0
26 return config
27}
28
29func openProxy() (*Proxy, string) {
30 s, err := New(config)

Callers 1

proxy_test.goFile · 0.85

Calls 1

NewDefaultConfigFunction · 0.70

Tested by

no test coverage detected