Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + type GetHandler interface + Handle func(context.Context, *GetQuery) (*Notebook, error) + func NewGetHandler(readModel ReadModel, workspaceReadModel workspace.WorkspaceReadModel) GetHandler + type GetQuery struct + Name string + WorkspaceID string + type ListHandler interface + Handle func(context.Context, *ListQuery) ([]*Notebook, error) + func NewListHandler(readModel ReadModel, workspaceReadModel workspace.WorkspaceReadModel) ListHandler + type ListQuery struct + WorkspaceID string + type Notebook struct + Content []byte + Name string + Size int64 + UpdateTime time.Time + WorkspaceID string + type Queries struct + Get GetHandler + List ListHandler + func NewQueries(readModel ReadModel, workspaceReadModel workspace.WorkspaceReadModel) *Queries + type ReadModel interface + Get func(ctx context.Context, workspaceID, name string) (*Notebook, error) + ListByWorkspace func(ctx context.Context, workspaceID string) ([]*Notebook, error)