github.com/Aestek/consul@v1.2.4-0.20190309222502-b2c31e33971a/agent/proxyprocess/test.go (about) 1 package proxyprocess 2 3 // defaultTestProxy is the test proxy that is instantiated for proxies with 4 // an execution mode of ProxyExecModeTest. 5 var defaultTestProxy = testProxy{} 6 7 // testProxy is a Proxy implementation that stores state in-memory and 8 // is only used for unit testing. It is in a non _test.go file because the 9 // factory for initializing it is exported (newProxy). 10 type testProxy struct { 11 Start uint32 12 Stop uint32 13 }