Documentation
¶
Index ¶
- Variables
- func CreateService(srv WorkspaceServiceRPC, options []connect.HandlerOption) (*api.Service, error)
- type WorkspaceEvent
- type WorkspaceServiceRPC
- func (c *WorkspaceServiceRPC) WorkspaceCollection(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[apiv1.WorkspaceCollectionResponse], error)
- func (c *WorkspaceServiceRPC) WorkspaceDelete(ctx context.Context, req *connect.Request[apiv1.WorkspaceDeleteRequest]) (*connect.Response[emptypb.Empty], error)
- func (c *WorkspaceServiceRPC) WorkspaceInsert(ctx context.Context, req *connect.Request[apiv1.WorkspaceInsertRequest]) (*connect.Response[emptypb.Empty], error)
- func (c *WorkspaceServiceRPC) WorkspaceSync(ctx context.Context, req *connect.Request[emptypb.Empty], ...) error
- func (c *WorkspaceServiceRPC) WorkspaceUpdate(ctx context.Context, req *connect.Request[apiv1.WorkspaceUpdateRequest]) (*connect.Response[emptypb.Empty], error)
- type WorkspaceServiceRPCDeps
- type WorkspaceServiceRPCReaders
- type WorkspaceServiceRPCServices
- type WorkspaceServiceRPCStreamers
- type WorkspaceTopic
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 WorkspaceServiceRPC ¶
func New ¶
func New(deps WorkspaceServiceRPCDeps) WorkspaceServiceRPC
func (*WorkspaceServiceRPC) WorkspaceCollection ¶
func (*WorkspaceServiceRPC) WorkspaceDelete ¶
func (*WorkspaceServiceRPC) WorkspaceInsert ¶
func (*WorkspaceServiceRPC) WorkspaceSync ¶
func (c *WorkspaceServiceRPC) WorkspaceSync(ctx context.Context, req *connect.Request[emptypb.Empty], stream *connect.ServerStream[apiv1.WorkspaceSyncResponse]) error
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 ¶
Click to show internal directories.
Click to hide internal directories.