MCPcopy Index your code
hub / github.com/bytebase/bytebase / Stop

Method Stop

backend/component/sampleinstance/manager.go:138–148  ·  view source on GitHub ↗

Stop stops all sample instances.

()

Source from the content-addressed store, hash-verified

136
137// Stop stops all sample instances.
138func (m *Manager) Stop() {
139 m.mu.Lock()
140 defer m.mu.Unlock()
141
142 for _, stopper := range m.stoppers {
143 if stopper != nil {
144 stopper()
145 }
146 }
147 m.stoppers = nil
148}
149
150// Port returns the base port for sample instances.
151func (m *Manager) Port() int {

Callers 15

newMockServerFunction · 0.80
queryStatementMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
GetSQLReviewResultMethod · 0.80
waitRolloutMethod · 0.80

Calls

no outgoing calls

Tested by 2

newMockServerFunction · 0.64