Documentation ¶
Index ¶
- func MockIntegrationNow(r repo.Integration, t time.Time) func()
- func MockModelNow(r repo.Model, t time.Time) func()
- func MockNow(r *repo.Container, t time.Time) func()
- func MockProjectNow(r repo.Project, t time.Time) func()
- func MockSchemaNow(r repo.Schema, t time.Time) func()
- func MockViewNow(r repo.View, t time.Time) func()
- func New() *repo.Container
- func NewAsset() repo.Asset
- func NewEvent() repo.Event
- func NewGroup() repo.Group
- func NewIntegration() repo.Integration
- func NewItem() repo.Item
- func NewLock() repo.Lock
- func NewModel() repo.Model
- func NewProject() repo.Project
- func NewRequest() repo.Request
- func NewSchema() repo.Schema
- func NewThread() repo.Thread
- func NewView() repo.View
- func NewWorkspaceSettings() repo.WorkspaceSettings
- func SetIntegrationError(r repo.Integration, err error)
- func SetItemError(r repo.Item, err error)
- func SetModelError(r repo.Model, err error)
- func SetProjectError(r repo.Project, err error)
- func SetRequestError(r repo.Request, err error)
- func SetSchemaError(r repo.Schema, err error)
- func SetThreadError(r repo.Thread, err error)
- func SetViewError(r repo.View, err error)
- type Asset
- func (r *Asset) Delete(ctx context.Context, id id.AssetID) error
- func (r *Asset) Filtered(f repo.ProjectFilter) repo.Asset
- func (r *Asset) FindByID(ctx context.Context, id id.AssetID) (*asset.Asset, error)
- func (r *Asset) FindByIDs(ctx context.Context, ids id.AssetIDList) ([]*asset.Asset, error)
- func (r *Asset) FindByProject(ctx context.Context, id id.ProjectID, filter repo.AssetFilter) ([]*asset.Asset, *usecasex.PageInfo, error)
- func (r *Asset) Save(ctx context.Context, a *asset.Asset) error
- type AssetFile
- func (r *AssetFile) FindByID(ctx context.Context, id id.AssetID) (*asset.File, error)
- func (r *AssetFile) FindByIDs(ctx context.Context, ids id.AssetIDList) (map[id.AssetID]*asset.File, error)
- func (r *AssetFile) Save(ctx context.Context, id id.AssetID, file *asset.File) error
- func (r *AssetFile) SaveFlat(ctx context.Context, id id.AssetID, parent *asset.File, files []*asset.File) error
- type Event
- type Group
- func (r *Group) Filtered(filter repo.ProjectFilter) repo.Group
- func (r *Group) FindByID(ctx context.Context, groupID id.GroupID) (*group.Group, error)
- func (r *Group) FindByIDs(ctx context.Context, list id.GroupIDList) (group.List, error)
- func (r *Group) FindByKey(ctx context.Context, pid id.ProjectID, key string) (*group.Group, error)
- func (r *Group) FindByProject(ctx context.Context, pid id.ProjectID) (group.List, error)
- func (r *Group) Remove(ctx context.Context, groupID id.GroupID) error
- func (r *Group) Save(ctx context.Context, g *group.Group) error
- func (r *Group) SaveAll(ctx context.Context, groups group.List) error
- type Integration
- func (r *Integration) FindByID(_ context.Context, iId id.IntegrationID) (*integration.Integration, error)
- func (r *Integration) FindByIDs(_ context.Context, iIds id.IntegrationIDList) (integration.List, error)
- func (r *Integration) FindByToken(_ context.Context, token string) (*integration.Integration, error)
- func (r *Integration) FindByUser(_ context.Context, uID accountdomain.UserID) (integration.List, error)
- func (r *Integration) Remove(_ context.Context, iId id.IntegrationID) error
- func (r *Integration) Save(_ context.Context, i *integration.Integration) error
- type Item
- func (r *Item) Archive(_ context.Context, itemID id.ItemID, projectID id.ProjectID, archived bool) error
- func (r *Item) Filtered(filter repo.ProjectFilter) repo.Item
- func (r *Item) FindAllVersionsByID(_ context.Context, id id.ItemID) (item.VersionedList, error)
- func (r *Item) FindAllVersionsByIDs(_ context.Context, ids id.ItemIDList) (item.VersionedList, error)
- func (r *Item) FindByAssets(_ context.Context, list id.AssetIDList, ref *version.Ref) (item.VersionedList, error)
- func (r *Item) FindByID(_ context.Context, itemID id.ItemID, ref *version.Ref) (item.Versioned, error)
- func (r *Item) FindByIDs(_ context.Context, list id.ItemIDList, ref *version.Ref) (item.VersionedList, error)
- func (r *Item) FindByModel(_ context.Context, modelID id.ModelID, ref *version.Ref, sort *usecasex.Sort, ...) (item.VersionedList, *usecasex.PageInfo, error)
- func (r *Item) FindByModelAndValue(_ context.Context, modelID id.ModelID, fields []repo.FieldAndValue, ...) (item.VersionedList, error)
- func (r *Item) FindBySchema(_ context.Context, schemaID id.SchemaID, ref *version.Ref, sort *usecasex.Sort, ...) (item.VersionedList, *usecasex.PageInfo, error)
- func (r *Item) FindVersionByID(_ context.Context, itemID id.ItemID, ver version.VersionOrRef) (item.Versioned, error)
- func (r *Item) IsArchived(_ context.Context, itemID id.ItemID) (bool, error)
- func (r *Item) LastModifiedByModel(_ context.Context, modelID id.ModelID) (time.Time, error)
- func (r *Item) Len() int
- func (r *Item) Remove(_ context.Context, itemID id.ItemID) error
- func (r *Item) Save(_ context.Context, t *item.Item) error
- func (r *Item) SaveAll(_ context.Context, il item.List) error
- func (r *Item) Search(_ context.Context, sp schema.Package, q *item.Query, ...) (item.VersionedList, *usecasex.PageInfo, error)
- func (r *Item) UpdateRef(_ context.Context, item id.ItemID, ref version.Ref, vr *version.VersionOrRef) error
- type Lock
- type Model
- func (r *Model) CountByProject(_ context.Context, pid id.ProjectID) (int, error)
- func (r *Model) Filtered(f repo.ProjectFilter) repo.Model
- func (r *Model) FindByID(_ context.Context, mid id.ModelID) (*model.Model, error)
- func (r *Model) FindByIDOrKey(ctx context.Context, projectID id.ProjectID, q model.IDOrKey) (*model.Model, error)
- func (r *Model) FindByIDs(_ context.Context, ids id.ModelIDList) (model.List, error)
- func (r *Model) FindByKey(_ context.Context, pid id.ProjectID, key string) (*model.Model, error)
- func (r *Model) FindByProject(_ context.Context, pid id.ProjectID, _ *usecasex.Pagination) (model.List, *usecasex.PageInfo, error)
- func (r *Model) FindByProjectAndKeyword(_ context.Context, pid id.ProjectID, k string, _ *usecasex.Pagination) (model.List, *usecasex.PageInfo, error)
- func (r *Model) FindBySchema(_ context.Context, sid id.SchemaID) (*model.Model, error)
- func (r *Model) Remove(_ context.Context, mId id.ModelID) error
- func (r *Model) Save(_ context.Context, m *model.Model) error
- func (r *Model) SaveAll(ctx context.Context, models model.List) error
- type Project
- func (r *Project) CountByWorkspace(_ context.Context, workspace accountdomain.WorkspaceID) (c int, err error)
- func (r *Project) Filtered(f repo.WorkspaceFilter) repo.Project
- func (r *Project) FindByID(_ context.Context, pid id.ProjectID) (*project.Project, error)
- func (r *Project) FindByIDOrAlias(_ context.Context, q project.IDOrAlias) (*project.Project, error)
- func (r *Project) FindByIDs(_ context.Context, ids id.ProjectIDList) (project.List, error)
- func (r *Project) FindByPublicAPIToken(ctx context.Context, token string) (*project.Project, error)
- func (r *Project) FindByPublicName(_ context.Context, name string) (*project.Project, error)
- func (r *Project) FindByWorkspaces(_ context.Context, wids accountdomain.WorkspaceIDList, _ *usecasex.Pagination) (project.List, *usecasex.PageInfo, error)
- func (r *Project) Remove(_ context.Context, id id.ProjectID) error
- func (r *Project) Save(_ context.Context, p *project.Project) error
- type Request
- func (r *Request) Filtered(f repo.ProjectFilter) repo.Request
- func (r *Request) FindByID(ctx context.Context, id id.RequestID) (*request.Request, error)
- func (r *Request) FindByIDs(ctx context.Context, ids id.RequestIDList) (request.List, error)
- func (r *Request) FindByItems(ctx context.Context, list id.ItemIDList, f *repo.RequestFilter) (request.List, error)
- func (r *Request) FindByProject(ctx context.Context, id id.ProjectID, filter repo.RequestFilter, ...) (request.List, *usecasex.PageInfo, error)
- func (r *Request) Save(ctx context.Context, a *request.Request) error
- func (r *Request) SaveAll(ctx context.Context, pid id.ProjectID, requests request.List) error
- type Schema
- func (r *Schema) Filtered(f repo.WorkspaceFilter) repo.Schema
- func (r *Schema) FindByID(_ context.Context, sid id.SchemaID) (*schema.Schema, error)
- func (r *Schema) FindByIDs(_ context.Context, ids id.SchemaIDList) (schema.List, error)
- func (r *Schema) Remove(_ context.Context, sId id.SchemaID) error
- func (r *Schema) Save(_ context.Context, s *schema.Schema) error
- type Thread
- func (r *Thread) Filtered(f repo.WorkspaceFilter) repo.Thread
- func (r *Thread) FindByID(ctx context.Context, thid id.ThreadID) (*thread.Thread, error)
- func (r *Thread) FindByIDs(ctx context.Context, ids id.ThreadIDList) ([]*thread.Thread, error)
- func (r *Thread) Save(_ context.Context, th *thread.Thread) error
- func (r *Thread) SaveAll(_ context.Context, th thread.List) error
- type View
- func (r *View) Filtered(f repo.ProjectFilter) repo.View
- func (r *View) FindByID(_ context.Context, iId id.ViewID) (*view.View, error)
- func (r *View) FindByIDs(_ context.Context, iIds id.ViewIDList) (view.List, error)
- func (r *View) FindByModel(_ context.Context, mID id.ModelID) (view.List, error)
- func (r *View) Remove(_ context.Context, iId id.ViewID) error
- func (r *View) Save(_ context.Context, i *view.View) error
- func (r *View) SaveAll(ctx context.Context, views view.List) error
- type WorkspaceSettingsRepo
- func (r *WorkspaceSettingsRepo) Filtered(f repo.WorkspaceFilter) repo.WorkspaceSettings
- func (r *WorkspaceSettingsRepo) FindByID(ctx context.Context, wid accountdomain.WorkspaceID) (*workspacesettings.WorkspaceSettings, error)
- func (r *WorkspaceSettingsRepo) FindByIDs(ctx context.Context, ids accountdomain.WorkspaceIDList) (workspacesettings.List, error)
- func (r *WorkspaceSettingsRepo) Remove(ctx context.Context, wid accountdomain.WorkspaceID) error
- func (r *WorkspaceSettingsRepo) Save(ctx context.Context, ws *workspacesettings.WorkspaceSettings) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockIntegrationNow ¶
func MockIntegrationNow(r repo.Integration, t time.Time) func()
func NewIntegration ¶
func NewIntegration() repo.Integration
func NewProject ¶
func NewRequest ¶
func NewWorkspaceSettings ¶
func NewWorkspaceSettings() repo.WorkspaceSettings
func SetIntegrationError ¶
func SetIntegrationError(r repo.Integration, err error)
func SetItemError ¶
func SetModelError ¶
func SetProjectError ¶
func SetRequestError ¶
func SetSchemaError ¶
func SetThreadError ¶
func SetViewError ¶
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func (*Asset) FindByProject ¶
type AssetFile ¶
type AssetFile struct {
// contains filtered or unexported fields
}
func NewAssetFile ¶
func NewAssetFile() *AssetFile
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) FindByProject ¶
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
func (*Integration) FindByID ¶
func (r *Integration) FindByID(_ context.Context, iId id.IntegrationID) (*integration.Integration, error)
func (*Integration) FindByIDs ¶
func (r *Integration) FindByIDs(_ context.Context, iIds id.IntegrationIDList) (integration.List, error)
func (*Integration) FindByToken ¶
func (r *Integration) FindByToken(_ context.Context, token string) (*integration.Integration, error)
func (*Integration) FindByUser ¶
func (r *Integration) FindByUser(_ context.Context, uID accountdomain.UserID) (integration.List, error)
func (*Integration) Remove ¶
func (r *Integration) Remove(_ context.Context, iId id.IntegrationID) error
func (*Integration) Save ¶
func (r *Integration) Save(_ context.Context, i *integration.Integration) error
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) FindAllVersionsByID ¶
func (*Item) FindAllVersionsByIDs ¶
func (r *Item) FindAllVersionsByIDs(_ context.Context, ids id.ItemIDList) (item.VersionedList, error)
func (*Item) FindByAssets ¶
func (r *Item) FindByAssets(_ context.Context, list id.AssetIDList, ref *version.Ref) (item.VersionedList, error)
func (*Item) FindByIDs ¶
func (r *Item) FindByIDs(_ context.Context, list id.ItemIDList, ref *version.Ref) (item.VersionedList, error)
func (*Item) FindByModel ¶
func (*Item) FindByModelAndValue ¶
func (*Item) FindBySchema ¶
func (*Item) FindVersionByID ¶
func (*Item) IsArchived ¶
func (*Item) LastModifiedByModel ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) CountByProject ¶
func (*Model) FindByIDOrKey ¶
func (*Model) FindByProject ¶
func (*Model) FindByProjectAndKeyword ¶
func (*Model) FindBySchema ¶
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func (*Project) CountByWorkspace ¶
func (r *Project) CountByWorkspace(_ context.Context, workspace accountdomain.WorkspaceID) (c int, err error)
func (*Project) FindByIDOrAlias ¶
func (*Project) FindByPublicAPIToken ¶
func (*Project) FindByPublicName ¶
func (*Project) FindByWorkspaces ¶
func (r *Project) FindByWorkspaces(_ context.Context, wids accountdomain.WorkspaceIDList, _ *usecasex.Pagination) (project.List, *usecasex.PageInfo, error)
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) FindByItems ¶
func (r *Request) FindByItems(ctx context.Context, list id.ItemIDList, f *repo.RequestFilter) (request.List, error)
func (*Request) FindByProject ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
type Thread ¶
type Thread struct {
// contains filtered or unexported fields
}
type View ¶
type View struct {
// contains filtered or unexported fields
}
func (*View) FindByModel ¶
type WorkspaceSettingsRepo ¶
type WorkspaceSettingsRepo struct {
// contains filtered or unexported fields
}
func (*WorkspaceSettingsRepo) Filtered ¶
func (r *WorkspaceSettingsRepo) Filtered(f repo.WorkspaceFilter) repo.WorkspaceSettings
func (*WorkspaceSettingsRepo) FindByID ¶
func (r *WorkspaceSettingsRepo) FindByID(ctx context.Context, wid accountdomain.WorkspaceID) (*workspacesettings.WorkspaceSettings, error)
func (*WorkspaceSettingsRepo) FindByIDs ¶
func (r *WorkspaceSettingsRepo) FindByIDs(ctx context.Context, ids accountdomain.WorkspaceIDList) (workspacesettings.List, error)
func (*WorkspaceSettingsRepo) Remove ¶
func (r *WorkspaceSettingsRepo) Remove(ctx context.Context, wid accountdomain.WorkspaceID) error
func (*WorkspaceSettingsRepo) Save ¶
func (r *WorkspaceSettingsRepo) Save(ctx context.Context, ws *workspacesettings.WorkspaceSettings) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.