MCPcopy Create free account
hub / github.com/bytebase/bytebase / NewServer

Function NewServer

backend/api/lsp/server.go:28–45  ·  view source on GitHub ↗

NewServer creates a Language Server Protocol service.

(
	store *store.Store,
	profile *config.Profile,
	secret string,
	bus *bus.Bus,
	iamManager *iam.Manager,
	licenseService *enterprise.LicenseService,
)

Source from the content-addressed store, hash-verified

26
27// NewServer creates a Language Server Protocol service.
28func NewServer(
29 store *store.Store,
30 profile *config.Profile,
31 secret string,
32 bus *bus.Bus,
33 iamManager *iam.Manager,
34 licenseService *enterprise.LicenseService,
35) *Server {
36 return &Server{
37 store: store,
38 profile: profile,
39 secret: secret,
40 bus: bus,
41 iamManager: iamManager,
42 licenseService: licenseService,
43 authInterceptor: auth.New(store, secret, licenseService, bus, profile),
44 }
45}

Callers 1

NewServerFunction · 0.92

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected