rworkspace

package
v0.0.0-...-36d6306 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWorkspaceNotFound = errors.New("workspace not found")

Functions

func CreateService

func CreateService(srv WorkspaceServiceRPC, options []connect.HandlerOption) (*api.Service, error)

Types

type WorkspaceEvent

type WorkspaceEvent struct {
	Type      string
	Workspace *apiv1.Workspace
}

type WorkspaceServiceRPC

type WorkspaceServiceRPC struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func (*WorkspaceServiceRPC) WorkspaceCollection

func (*WorkspaceServiceRPC) WorkspaceDelete

func (*WorkspaceServiceRPC) WorkspaceInsert

func (*WorkspaceServiceRPC) WorkspaceSync

func (*WorkspaceServiceRPC) WorkspaceUpdate

type WorkspaceServiceRPCDeps

type WorkspaceServiceRPCDeps struct {
	DB        *sql.DB
	Services  WorkspaceServiceRPCServices
	Readers   WorkspaceServiceRPCReaders
	Streamers WorkspaceServiceRPCStreamers
	Publisher mutation.Publisher // Unified publisher for cascade delete events
}

func (*WorkspaceServiceRPCDeps) Validate

func (d *WorkspaceServiceRPCDeps) Validate() error

type WorkspaceServiceRPCReaders

type WorkspaceServiceRPCReaders struct {
	Workspace *sworkspace.WorkspaceReader
	User      *sworkspace.UserReader
}

func (*WorkspaceServiceRPCReaders) Validate

func (r *WorkspaceServiceRPCReaders) Validate() error

type WorkspaceServiceRPCServices

type WorkspaceServiceRPCServices struct {
	Workspace     sworkspace.WorkspaceService
	WorkspaceUser sworkspace.UserService
	User          suser.UserService
	Env           senv.EnvService
}

func (*WorkspaceServiceRPCServices) Validate

func (s *WorkspaceServiceRPCServices) Validate() error

type WorkspaceServiceRPCStreamers

type WorkspaceServiceRPCStreamers struct {
	Workspace   eventstream.SyncStreamer[WorkspaceTopic, WorkspaceEvent]
	Environment eventstream.SyncStreamer[renv.EnvironmentTopic, renv.EnvironmentEvent]
}

func (*WorkspaceServiceRPCStreamers) Validate

func (s *WorkspaceServiceRPCStreamers) Validate() error

type WorkspaceTopic

type WorkspaceTopic struct {
	WorkspaceID idwrap.IDWrap
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL