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

Method GetWorkspaceID

backend/api/oauth2/token.go:248–248  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

246// Defining it as an interface keeps the helper independently unit-testable.
247type workspaceResolver interface {
248 GetWorkspaceID(ctx context.Context) (string, error)
249 FindWorkspace(ctx context.Context, find *store.FindWorkspaceMessage) (*store.WorkspaceMessage, error)
250}
251

Implementers 2

Storebackend/store/store.go
fakeWorkspaceResolverbackend/api/oauth2/token_test.go

Calls

no outgoing calls