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

Method Start

pkg/proxy/proxy.go:160–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (s *Proxy) Start() error {
161 s.mu.Lock()
162 defer s.mu.Unlock()
163 if s.closed {
164 return ErrClosedProxy
165 }
166 if s.online {
167 return nil
168 }
169 s.online = true
170 s.router.Start()
171 if s.jodis != nil {
172 s.jodis.Start()
173 }
174 return nil
175}
176
177func (s *Proxy) Close() error {
178 s.mu.Lock()

Callers 5

serveProxyMethod · 0.45
TestStartAndShutdownFunction · 0.45
AutoOnlineWithFillSlotsFunction · 0.45
mainFunction · 0.45
handleStartMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestStartAndShutdownFunction · 0.36