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

Function NewManager

backend/component/sampleinstance/manager.go:35–45  ·  view source on GitHub ↗

NewManager creates a new sample instance manager.

(store *store.Store, profile *config.Profile)

Source from the content-addressed store, hash-verified

33
34// NewManager creates a new sample instance manager.
35func NewManager(store *store.Store, profile *config.Profile) *Manager {
36 // Using profile.Port + 3 as our sample database port.
37 // The actual startup of sample instances will be determined by checking the instance table.
38 port := profile.Port + 3
39
40 return &Manager{
41 store: store,
42 profile: profile,
43 port: port,
44 }
45}
46
47// StartIfExist starts sample instances if they exist in the database.
48func (m *Manager) StartIfExist(ctx context.Context, workspaceID string) error {

Callers 1

NewServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected