Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface {
WorkspaceWriter
WorkspaceReader
}
func NewRepo ¶
func NewRepo(db *sqlx.DB) Repository
type WorkspaceReader ¶
type WorkspaceReader interface {
Get(id string) (*workspace.Workspace, error)
ListByCodebaseIDs(codebaseIDs []string, includeArchived bool) ([]*workspace.Workspace, error)
ListByCodebaseIDsAndUserID(codebaseIDs []string, userID string) ([]*workspace.Workspace, error)
GetByViewID(viewID string, includeArchived bool) (*workspace.Workspace, error)
GetBySnapshotID(snapshotID string) (*workspace.Workspace, error)
}
Click to show internal directories.
Click to hide internal directories.