Documentation
¶
Index ¶
- func Init(r *repo.Container) error
- func New(ctx context.Context, mc *mongo.Client, databaseName string, ...) (*repo.Container, error)
- func NewAsset(client *mongox.Client) repo.Asset
- func NewAssetFile(client *mongox.Client) repo.AssetFile
- func NewAssetUpload(client *mongox.Client) repo.AssetUpload
- func NewEvent(client *mongox.Client) repo.Event
- func NewGroup(client *mongox.Client) repo.Group
- func NewIntegration(client *mongox.Client) repo.Integration
- func NewItem(client *mongox.Client) repo.Item
- func NewLock(c *mongo.Collection) (repo.Lock, error)
- func NewModel(client *mongox.Client) repo.Model
- func NewProject(client *mongox.Client) repo.Project
- func NewRequest(client *mongox.Client) repo.Request
- func NewSchema(client *mongox.Client) repo.Schema
- func NewThread(client *mongox.Client) repo.Thread
- func NewView(client *mongox.Client) repo.View
- func NewWithDB(ctx context.Context, db *mongo.Database, useTransaction bool, ...) (*repo.Container, error)
- func NewWorkspaceSettings(client *mongox.Client) repo.WorkspaceSettings
- 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, uFilter repo.AssetFilter) ([]*asset.Asset, *usecasex.PageInfo, error)
- func (r *Asset) Init() error
- func (r *Asset) Save(ctx context.Context, asset *asset.Asset) error
- func (r *Asset) UpdateProject(ctx context.Context, from, to id.ProjectID) error
- type AssetFile
- func (r *AssetFile) Filtered(f repo.ProjectFilter) repo.Asset
- 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) Init() 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 AssetUpload
- type Event
- type Group
- func (r *Group) Filtered(filter repo.ProjectFilter) repo.Group
- func (r *Group) FindByID(ctx context.Context, gid 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, projectID id.ProjectID, key string) (*group.Group, error)
- func (r *Group) FindByProject(ctx context.Context, pid id.ProjectID) (group.List, error)
- func (r *Group) Init() error
- func (r *Group) Remove(ctx context.Context, groupID id.GroupID) error
- func (r *Group) Save(ctx context.Context, group *group.Group) error
- func (r *Group) SaveAll(ctx context.Context, list group.List) error
- type Integration
- func (r *Integration) FindByID(ctx context.Context, integrationID id.IntegrationID) (*integration.Integration, error)
- func (r *Integration) FindByIDs(ctx context.Context, ids id.IntegrationIDList) (integration.List, error)
- func (r *Integration) FindByToken(ctx context.Context, token string) (*integration.Integration, error)
- func (r *Integration) FindByUser(ctx context.Context, userID accountdomain.UserID) (integration.List, error)
- func (r *Integration) Init() error
- func (r *Integration) Remove(ctx context.Context, integrationID id.IntegrationID) error
- func (r *Integration) Save(ctx context.Context, integration *integration.Integration) error
- type Item
- func (r *Item) Archive(ctx context.Context, id id.ItemID, pid id.ProjectID, b bool) error
- func (r *Item) Filtered(f repo.ProjectFilter) repo.Item
- func (r *Item) FindAllVersionsByID(ctx context.Context, itemID id.ItemID) (item.VersionedList, error)
- func (r *Item) FindAllVersionsByIDs(ctx context.Context, ids id.ItemIDList) (item.VersionedList, error)
- func (r *Item) FindByAssets(ctx context.Context, al id.AssetIDList, ref *version.Ref) (item.VersionedList, error)
- func (r *Item) FindByID(ctx context.Context, id id.ItemID, ref *version.Ref) (item.Versioned, error)
- func (r *Item) FindByIDs(ctx context.Context, ids id.ItemIDList, ref *version.Ref) (item.VersionedList, error)
- func (r *Item) FindByModel(ctx context.Context, modelID id.ModelID, ref *version.Ref, sort *usecasex.Sort, ...) (item.VersionedList, *usecasex.PageInfo, error)
- func (r *Item) FindByModelAndValue(ctx context.Context, modelID id.ModelID, fields []repo.FieldAndValue, ...) (item.VersionedList, error)
- func (r *Item) FindBySchema(ctx context.Context, schemaID id.SchemaID, ref *version.Ref, ...) (item.VersionedList, *usecasex.PageInfo, error)
- func (r *Item) FindVersionByID(ctx context.Context, itemID id.ItemID, ver version.VersionOrRef) (item.Versioned, error)
- func (r *Item) Init() error
- func (r *Item) IsArchived(ctx context.Context, id id.ItemID) (bool, error)
- func (r *Item) LastModifiedByModel(ctx context.Context, modelID id.ModelID) (time.Time, error)
- func (r *Item) Remove(ctx context.Context, id id.ItemID) error
- func (r *Item) Save(ctx context.Context, item *item.Item) error
- func (r *Item) SaveAll(ctx context.Context, items item.List) error
- func (r *Item) Search(ctx context.Context, sp schema.Package, query *item.Query, ...) (item.VersionedList, *usecasex.PageInfo, error)
- func (r *Item) UpdateRef(ctx context.Context, item id.ItemID, ref version.Ref, vr *version.VersionOrRef) error
- type Lock
- type Model
- func (r *Model) CountByProject(ctx context.Context, projectID id.ProjectID) (int, error)
- func (r *Model) Filtered(f repo.ProjectFilter) repo.Model
- func (r *Model) FindByID(ctx context.Context, modelID 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(ctx context.Context, ids id.ModelIDList) (model.List, error)
- func (r *Model) FindByKey(ctx context.Context, projectID id.ProjectID, key string) (*model.Model, error)
- func (r *Model) FindByProject(ctx context.Context, pid id.ProjectID, pagination *usecasex.Pagination) (model.List, *usecasex.PageInfo, error)
- func (r *Model) FindByProjectAndKeyword(ctx context.Context, pid id.ProjectID, k string, ...) (model.List, *usecasex.PageInfo, error)
- func (r *Model) FindBySchema(ctx context.Context, schemaID id.SchemaID) (*model.Model, error)
- func (r *Model) Init() error
- func (r *Model) Remove(ctx context.Context, modelID id.ModelID) error
- func (r *Model) Save(ctx context.Context, model *model.Model) error
- func (r *Model) SaveAll(ctx context.Context, list model.List) error
- type ProjectRepo
- func (r *ProjectRepo) CountByWorkspace(ctx context.Context, workspace accountdomain.WorkspaceID) (int, error)
- func (r *ProjectRepo) Filtered(f repo.WorkspaceFilter) repo.Project
- func (r *ProjectRepo) FindByID(ctx context.Context, id id.ProjectID) (*project.Project, error)
- func (r *ProjectRepo) FindByIDOrAlias(ctx context.Context, id project.IDOrAlias) (*project.Project, error)
- func (r *ProjectRepo) FindByIDs(ctx context.Context, ids id.ProjectIDList) (project.List, error)
- func (r *ProjectRepo) FindByPublicAPIToken(ctx context.Context, token string) (*project.Project, error)
- func (r *ProjectRepo) FindByPublicName(ctx context.Context, name string) (*project.Project, error)
- func (r *ProjectRepo) FindByWorkspaces(ctx context.Context, ids accountdomain.WorkspaceIDList, ...) (project.List, *usecasex.PageInfo, error)
- func (r *ProjectRepo) Init() error
- func (r *ProjectRepo) Remove(ctx context.Context, id id.ProjectID) error
- func (r *ProjectRepo) Save(ctx context.Context, project *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, uFilter *repo.RequestFilter) (request.List, error)
- func (r *Request) FindByProject(ctx context.Context, id id.ProjectID, uFilter repo.RequestFilter, ...) (request.List, *usecasex.PageInfo, error)
- func (r *Request) Init() error
- func (r *Request) Remove(ctx context.Context, id id.RequestID) error
- func (r *Request) Save(ctx context.Context, request *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(ctx context.Context, schemaID id.SchemaID) (*schema.Schema, error)
- func (r *Schema) FindByIDs(ctx context.Context, ids id.SchemaIDList) (schema.List, error)
- func (r *Schema) Init() error
- func (r *Schema) Remove(ctx context.Context, schemaID id.SchemaID) error
- func (r *Schema) Save(ctx context.Context, schema *schema.Schema) error
- type ThreadRepo
- func (r *ThreadRepo) Filtered(f repo.WorkspaceFilter) repo.Thread
- func (r *ThreadRepo) FindByID(ctx context.Context, id id.ThreadID) (*thread.Thread, error)
- func (r *ThreadRepo) FindByIDs(ctx context.Context, ids id.ThreadIDList) ([]*thread.Thread, error)
- func (r *ThreadRepo) Init() error
- func (r *ThreadRepo) Save(ctx context.Context, thread *thread.Thread) error
- func (r *ThreadRepo) SaveAll(ctx context.Context, threads thread.List) error
- type View
- func (r *View) Filtered(f repo.ProjectFilter) repo.View
- func (r *View) FindByID(ctx context.Context, viewID id.ViewID) (*view.View, error)
- func (r *View) FindByIDs(ctx context.Context, ids id.ViewIDList) (view.List, error)
- func (r *View) FindByModel(ctx context.Context, modelID view.ModelID) (view.List, error)
- func (r *View) Init() error
- func (r *View) Remove(ctx context.Context, viewID id.ViewID) error
- func (r *View) Save(ctx context.Context, view *view.View) error
- func (r *View) SaveAll(ctx context.Context, list 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) Init() 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 NewAssetUpload ¶
func NewAssetUpload(client *mongox.Client) repo.AssetUpload
func NewIntegration ¶
func NewIntegration(client *mongox.Client) repo.Integration
func NewWorkspaceSettings ¶
func NewWorkspaceSettings(client *mongox.Client) repo.WorkspaceSettings
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func (*Asset) FindByProject ¶
type AssetFile ¶
type AssetFile struct {
// contains filtered or unexported fields
}
type AssetUpload ¶
type AssetUpload struct {
// contains filtered or unexported fields
}
func (*AssetUpload) Init ¶
func (r *AssetUpload) Init() error
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(ctx context.Context, integrationID id.IntegrationID) (*integration.Integration, error)
func (*Integration) FindByIDs ¶
func (r *Integration) FindByIDs(ctx context.Context, ids id.IntegrationIDList) (integration.List, error)
func (*Integration) FindByToken ¶
func (r *Integration) FindByToken(ctx context.Context, token string) (*integration.Integration, error)
func (*Integration) FindByUser ¶
func (r *Integration) FindByUser(ctx context.Context, userID accountdomain.UserID) (integration.List, error)
func (*Integration) Init ¶
func (r *Integration) Init() error
func (*Integration) Remove ¶
func (r *Integration) Remove(ctx context.Context, integrationID id.IntegrationID) error
func (*Integration) Save ¶
func (r *Integration) Save(ctx context.Context, integration *integration.Integration) error
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) FindAllVersionsByID ¶
func (*Item) FindAllVersionsByIDs ¶
func (r *Item) FindAllVersionsByIDs(ctx context.Context, ids id.ItemIDList) (item.VersionedList, error)
func (*Item) FindByAssets ¶
func (r *Item) FindByAssets(ctx context.Context, al id.AssetIDList, ref *version.Ref) (item.VersionedList, error)
func (*Item) FindByIDs ¶
func (r *Item) FindByIDs(ctx context.Context, ids 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 ProjectRepo ¶
type ProjectRepo struct {
// contains filtered or unexported fields
}
func (*ProjectRepo) CountByWorkspace ¶
func (r *ProjectRepo) CountByWorkspace(ctx context.Context, workspace accountdomain.WorkspaceID) (int, error)
func (*ProjectRepo) Filtered ¶
func (r *ProjectRepo) Filtered(f repo.WorkspaceFilter) repo.Project
func (*ProjectRepo) FindByIDOrAlias ¶
func (*ProjectRepo) FindByIDs ¶
func (r *ProjectRepo) FindByIDs(ctx context.Context, ids id.ProjectIDList) (project.List, error)
func (*ProjectRepo) FindByPublicAPIToken ¶
func (*ProjectRepo) FindByPublicName ¶
func (*ProjectRepo) FindByWorkspaces ¶
func (r *ProjectRepo) FindByWorkspaces(ctx context.Context, ids accountdomain.WorkspaceIDList, pagination *usecasex.Pagination) (project.List, *usecasex.PageInfo, error)
func (*ProjectRepo) Init ¶
func (r *ProjectRepo) Init() error
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) FindByItems ¶
func (r *Request) FindByItems(ctx context.Context, list id.ItemIDList, uFilter *repo.RequestFilter) (request.List, error)
func (*Request) FindByProject ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
type ThreadRepo ¶
type ThreadRepo struct {
// contains filtered or unexported fields
}
func (*ThreadRepo) Filtered ¶
func (r *ThreadRepo) Filtered(f repo.WorkspaceFilter) repo.Thread
func (*ThreadRepo) FindByIDs ¶
func (r *ThreadRepo) FindByIDs(ctx context.Context, ids id.ThreadIDList) ([]*thread.Thread, error)
func (*ThreadRepo) Init ¶
func (r *ThreadRepo) Init() error
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) Init ¶
func (r *WorkspaceSettingsRepo) Init() 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.