mongo

package
v0.0.0-...-55990d1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(r *repo.Container) error

func New

func New(ctx context.Context, db *mongo.Database, account *accountrepo.Container, useTransaction bool) (*repo.Container, error)

func NewWithExtensions

func NewWithExtensions(ctx context.Context, db *mongo.Database, account *accountrepo.Container, useTransaction bool, src []string) (*repo.Container, error)

Types

type Asset

type Asset struct {
	// contains filtered or unexported fields
}

func NewAsset

func NewAsset(client *mongox.Client) *Asset

func (*Asset) Filtered

func (r *Asset) Filtered(f repo.WorkspaceFilter) repo.Asset

func (*Asset) FindByID

func (r *Asset) FindByID(ctx context.Context, id id.AssetID) (*asset.Asset, error)

func (*Asset) FindByIDs

func (r *Asset) FindByIDs(ctx context.Context, ids id.AssetIDList) ([]*asset.Asset, error)

func (*Asset) FindByWorkspace

func (r *Asset) FindByWorkspace(ctx context.Context, id accountdomain.WorkspaceID, uFilter repo.AssetFilter) ([]*asset.Asset, *usecasex.PageInfo, error)

func (*Asset) Init

func (r *Asset) Init(ctx context.Context) error

func (*Asset) Remove

func (r *Asset) Remove(ctx context.Context, id id.AssetID) error

func (*Asset) Save

func (r *Asset) Save(ctx context.Context, asset *asset.Asset) error

func (*Asset) TotalSizeByWorkspace

func (r *Asset) TotalSizeByWorkspace(ctx context.Context, wid accountdomain.WorkspaceID) (int64, error)

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(client *mongo.Collection, lock repo.Lock) *Config

func (*Config) LockAndLoad

func (r *Config) LockAndLoad(ctx context.Context) (cfg *config.Config, err error)

func (*Config) Save

func (r *Config) Save(ctx context.Context, cfg *config.Config) error

func (*Config) SaveAndUnlock

func (r *Config) SaveAndUnlock(ctx context.Context, cfg *config.Config) error

func (*Config) SaveAuth

func (r *Config) SaveAuth(ctx context.Context, cfg *config.Auth) error

func (*Config) Unlock

func (r *Config) Unlock(ctx context.Context) error

type Dataset

type Dataset struct {
	// contains filtered or unexported fields
}

func NewDataset

func NewDataset(client *mongox.Client) *Dataset

func (*Dataset) CountBySchema

func (r *Dataset) CountBySchema(ctx context.Context, id id.DatasetSchemaID) (int, error)

func (*Dataset) Filtered

func (r *Dataset) Filtered(f repo.SceneFilter) repo.Dataset

func (*Dataset) FindByID

func (r *Dataset) FindByID(ctx context.Context, id id.DatasetID) (*dataset.Dataset, error)

func (*Dataset) FindByIDs

func (r *Dataset) FindByIDs(ctx context.Context, ids id.DatasetIDList) (dataset.List, error)

func (*Dataset) FindBySchema

func (r *Dataset) FindBySchema(ctx context.Context, schemaID id.DatasetSchemaID, pagination *usecasex.Pagination) (dataset.List, *usecasex.PageInfo, error)

func (*Dataset) FindBySchemaAll

func (r *Dataset) FindBySchemaAll(ctx context.Context, schemaID id.DatasetSchemaID) (dataset.List, error)

func (*Dataset) FindBySchemaAllBy

func (r *Dataset) FindBySchemaAllBy(ctx context.Context, s id.DatasetSchemaID, cb func(*dataset.Dataset) error) error

func (*Dataset) FindGraph

func (r *Dataset) FindGraph(ctx context.Context, did id.DatasetID, fields id.DatasetFieldIDList) (dataset.List, error)

func (*Dataset) Init

func (r *Dataset) Init(ctx context.Context) error

func (*Dataset) Remove

func (r *Dataset) Remove(ctx context.Context, id id.DatasetID) error

func (*Dataset) RemoveAll

func (r *Dataset) RemoveAll(ctx context.Context, ids id.DatasetIDList) error

func (*Dataset) RemoveByScene

func (r *Dataset) RemoveByScene(ctx context.Context, sceneID id.SceneID) error

func (*Dataset) Save

func (r *Dataset) Save(ctx context.Context, dataset *dataset.Dataset) error

func (*Dataset) SaveAll

func (r *Dataset) SaveAll(ctx context.Context, datasetList dataset.List) error

type DatasetSchema

type DatasetSchema struct {
	// contains filtered or unexported fields
}

func NewDatasetSchema

func NewDatasetSchema(client *mongox.Client) *DatasetSchema

func (*DatasetSchema) CountByScene

func (r *DatasetSchema) CountByScene(ctx context.Context, id id.SceneID) (int, error)

func (*DatasetSchema) Filtered

func (*DatasetSchema) FindByID

func (*DatasetSchema) FindByIDs

func (*DatasetSchema) FindByScene

func (r *DatasetSchema) FindByScene(ctx context.Context, sceneID id.SceneID, pagination *usecasex.Pagination) (dataset.SchemaList, *usecasex.PageInfo, error)

func (*DatasetSchema) FindBySceneAll

func (r *DatasetSchema) FindBySceneAll(ctx context.Context, sceneID id.SceneID) (dataset.SchemaList, error)

func (*DatasetSchema) FindBySceneAndSource

func (r *DatasetSchema) FindBySceneAndSource(ctx context.Context, sceneID id.SceneID, source string) (dataset.SchemaList, error)

func (*DatasetSchema) Init

func (r *DatasetSchema) Init(ctx context.Context) error

func (*DatasetSchema) Remove

func (r *DatasetSchema) Remove(ctx context.Context, id id.DatasetSchemaID) error

func (*DatasetSchema) RemoveAll

func (r *DatasetSchema) RemoveAll(ctx context.Context, ids id.DatasetSchemaIDList) error

func (*DatasetSchema) RemoveByScene

func (r *DatasetSchema) RemoveByScene(ctx context.Context, sceneID id.SceneID) error

func (*DatasetSchema) Save

func (r *DatasetSchema) Save(ctx context.Context, datasetSchema *dataset.Schema) error

func (*DatasetSchema) SaveAll

func (r *DatasetSchema) SaveAll(ctx context.Context, datasetSchemas dataset.SchemaList) error

type Layer

type Layer struct {
	// contains filtered or unexported fields
}

func NewLayer

func NewLayer(client *mongox.Client) *Layer

func (*Layer) CountByScene

func (r *Layer) CountByScene(ctx context.Context, sid id.SceneID) (int, error)

func (*Layer) Filtered

func (r *Layer) Filtered(f repo.SceneFilter) repo.Layer

func (*Layer) FindAllByDatasetSchema

func (r *Layer) FindAllByDatasetSchema(ctx context.Context, dsid id.DatasetSchemaID) (layer.List, error)

func (*Layer) FindByID

func (r *Layer) FindByID(ctx context.Context, id id.LayerID) (layer.Layer, error)

func (*Layer) FindByIDs

func (r *Layer) FindByIDs(ctx context.Context, ids id.LayerIDList) (layer.List, error)

func (*Layer) FindByPluginAndExtension

func (r *Layer) FindByPluginAndExtension(ctx context.Context, pid id.PluginID, eid *id.PluginExtensionID) (layer.List, error)

func (*Layer) FindByPluginAndExtensionOfBlocks

func (r *Layer) FindByPluginAndExtensionOfBlocks(ctx context.Context, pid id.PluginID, eid *id.PluginExtensionID) (layer.List, error)

func (*Layer) FindByProperty

func (r *Layer) FindByProperty(ctx context.Context, id id.PropertyID) (layer.Layer, error)

func (*Layer) FindByScene

func (r *Layer) FindByScene(ctx context.Context, id id.SceneID) (layer.List, error)

func (*Layer) FindByTag

func (r *Layer) FindByTag(ctx context.Context, tagID id.TagID) (layer.List, error)

func (*Layer) FindGroupByID

func (r *Layer) FindGroupByID(ctx context.Context, id id.LayerID) (*layer.Group, error)

func (*Layer) FindGroupByIDs

func (r *Layer) FindGroupByIDs(ctx context.Context, ids id.LayerIDList) (layer.GroupList, error)

func (*Layer) FindGroupBySceneAndLinkedDatasetSchema

func (r *Layer) FindGroupBySceneAndLinkedDatasetSchema(ctx context.Context, sceneID id.SceneID, datasetSchemaID id.DatasetSchemaID) (layer.GroupList, error)

func (*Layer) FindItemByID

func (r *Layer) FindItemByID(ctx context.Context, id id.LayerID) (*layer.Item, error)

func (*Layer) FindItemByIDs

func (r *Layer) FindItemByIDs(ctx context.Context, ids id.LayerIDList) (layer.ItemList, error)

func (*Layer) FindParentByID

func (r *Layer) FindParentByID(ctx context.Context, id id.LayerID) (*layer.Group, error)

func (*Layer) FindParentsByIDs

func (r *Layer) FindParentsByIDs(ctx context.Context, ids id.LayerIDList) (layer.GroupList, error)

func (*Layer) Init

func (r *Layer) Init(ctx context.Context) error

func (*Layer) Remove

func (r *Layer) Remove(ctx context.Context, id id.LayerID) error

func (*Layer) RemoveAll

func (r *Layer) RemoveAll(ctx context.Context, ids id.LayerIDList) error

func (*Layer) RemoveByScene

func (r *Layer) RemoveByScene(ctx context.Context, sceneID id.SceneID) error

func (*Layer) Save

func (r *Layer) Save(ctx context.Context, layer layer.Layer) error

func (*Layer) SaveAll

func (r *Layer) SaveAll(ctx context.Context, layers layer.List) error

func (*Layer) UpdatePlugin

func (r *Layer) UpdatePlugin(ctx context.Context, old, new id.PluginID) error

type Lock

type Lock struct {
	// contains filtered or unexported fields
}

func NewLock

func NewLock(c *mongo.Collection) (*Lock, error)

func (*Lock) Lock

func (r *Lock) Lock(ctx context.Context, name string) error

func (*Lock) Unlock

func (r *Lock) Unlock(ctx context.Context, name string) error

type NLSLayer

type NLSLayer struct {
	// contains filtered or unexported fields
}

func NewNLSLayer

func NewNLSLayer(client *mongox.Client) *NLSLayer

func (*NLSLayer) Filtered

func (r *NLSLayer) Filtered(f repo.SceneFilter) repo.NLSLayer

func (*NLSLayer) FindByID

func (r *NLSLayer) FindByID(ctx context.Context, id id.NLSLayerID) (nlslayer.NLSLayer, error)

func (*NLSLayer) FindByIDs

func (r *NLSLayer) FindByIDs(ctx context.Context, ids id.NLSLayerIDList) (nlslayer.NLSLayerList, error)

func (*NLSLayer) FindByScene

func (r *NLSLayer) FindByScene(ctx context.Context, id id.SceneID) (nlslayer.NLSLayerList, error)

func (*NLSLayer) FindNLSLayerGroupByID

func (r *NLSLayer) FindNLSLayerGroupByID(ctx context.Context, id id.NLSLayerID) (*nlslayer.NLSLayerGroup, error)

func (*NLSLayer) FindNLSLayerGroupByIDs

func (r *NLSLayer) FindNLSLayerGroupByIDs(ctx context.Context, ids id.NLSLayerIDList) (nlslayer.NLSLayerGroupList, error)

func (*NLSLayer) FindNLSLayerSimpleByID

func (r *NLSLayer) FindNLSLayerSimpleByID(ctx context.Context, id id.NLSLayerID) (*nlslayer.NLSLayerSimple, error)

func (*NLSLayer) FindNLSLayerSimpleByIDs

func (r *NLSLayer) FindNLSLayerSimpleByIDs(ctx context.Context, ids id.NLSLayerIDList) (nlslayer.NLSLayerSimpleList, error)

func (*NLSLayer) FindParentByID

func (r *NLSLayer) FindParentByID(ctx context.Context, id id.NLSLayerID) (*nlslayer.NLSLayerGroup, error)

func (*NLSLayer) FindParentsByIDs

func (r *NLSLayer) FindParentsByIDs(ctx context.Context, ids id.NLSLayerIDList) (nlslayer.NLSLayerGroupList, error)

func (*NLSLayer) Init

func (r *NLSLayer) Init(ctx context.Context) error

func (*NLSLayer) Remove

func (r *NLSLayer) Remove(ctx context.Context, id id.NLSLayerID) error

func (*NLSLayer) RemoveAll

func (r *NLSLayer) RemoveAll(ctx context.Context, ids id.NLSLayerIDList) error

func (*NLSLayer) RemoveByScene

func (r *NLSLayer) RemoveByScene(ctx context.Context, sceneID id.SceneID) error

func (*NLSLayer) Save

func (r *NLSLayer) Save(ctx context.Context, layer nlslayer.NLSLayer) error

func (*NLSLayer) SaveAll

func (r *NLSLayer) SaveAll(ctx context.Context, layers nlslayer.NLSLayerList) error

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(client *mongox.Client) *Plugin

func (*Plugin) Filtered

func (r *Plugin) Filtered(f repo.SceneFilter) repo.Plugin

func (*Plugin) FindByID

func (r *Plugin) FindByID(ctx context.Context, pid id.PluginID) (*plugin.Plugin, error)

func (*Plugin) FindByIDs

func (r *Plugin) FindByIDs(ctx context.Context, ids []id.PluginID) ([]*plugin.Plugin, error)

func (*Plugin) Init

func (r *Plugin) Init(ctx context.Context) error

func (*Plugin) Remove

func (r *Plugin) Remove(ctx context.Context, id id.PluginID) error

func (*Plugin) Save

func (r *Plugin) Save(ctx context.Context, plugin *plugin.Plugin) error

type Policy

type Policy struct {
	// contains filtered or unexported fields
}

func NewPolicy

func NewPolicy(c *mongox.Client) *Policy

func (*Policy) FindByID

func (r *Policy) FindByID(ctx context.Context, id policy.ID) (*policy.Policy, error)

func (*Policy) FindByIDs

func (r *Policy) FindByIDs(ctx context.Context, ids []policy.ID) ([]*policy.Policy, error)

func (*Policy) Init

func (r *Policy) Init(ctx context.Context) error

type Project

type Project struct {
	// contains filtered or unexported fields
}

func NewProject

func NewProject(client *mongox.Client) *Project

func (*Project) CountByWorkspace

func (r *Project) CountByWorkspace(ctx context.Context, ws accountdomain.WorkspaceID) (int, error)

func (*Project) CountPublicByWorkspace

func (r *Project) CountPublicByWorkspace(ctx context.Context, ws accountdomain.WorkspaceID) (int, error)

func (*Project) Filtered

func (r *Project) Filtered(f repo.WorkspaceFilter) repo.Project

func (*Project) FindByID

func (r *Project) FindByID(ctx context.Context, id id.ProjectID) (*project.Project, error)

func (*Project) FindByIDs

func (r *Project) FindByIDs(ctx context.Context, ids id.ProjectIDList) ([]*project.Project, error)

func (*Project) FindByPublicName

func (r *Project) FindByPublicName(ctx context.Context, name string) (*project.Project, error)

func (*Project) FindByScene

func (r *Project) FindByScene(ctx context.Context, id id.SceneID) (*project.Project, error)

func (*Project) FindByWorkspace

func (r *Project) FindByWorkspace(ctx context.Context, id accountdomain.WorkspaceID, pagination *usecasex.Pagination) ([]*project.Project, *usecasex.PageInfo, error)

func (*Project) Init

func (r *Project) Init(ctx context.Context) error

func (*Project) Remove

func (r *Project) Remove(ctx context.Context, id id.ProjectID) error

func (*Project) Save

func (r *Project) Save(ctx context.Context, project *project.Project) error

type Property

type Property struct {
	// contains filtered or unexported fields
}

func NewProperty

func NewProperty(client *mongox.Client) *Property

func (*Property) Filtered

func (r *Property) Filtered(f repo.SceneFilter) repo.Property

func (*Property) FindByDataset

func (r *Property) FindByDataset(ctx context.Context, sid id.DatasetSchemaID, did id.DatasetID) (property.List, error)

func (*Property) FindByID

func (r *Property) FindByID(ctx context.Context, id id.PropertyID) (*property.Property, error)

func (*Property) FindByIDs

func (r *Property) FindByIDs(ctx context.Context, ids id.PropertyIDList) (property.List, error)

func (*Property) FindByPlugin

func (r *Property) FindByPlugin(ctx context.Context, pid id.PluginID, sid id.SceneID) (property.List, error)

func (*Property) FindBySchema

func (r *Property) FindBySchema(ctx context.Context, psids []id.PropertySchemaID, sid id.SceneID) (property.List, error)

func (*Property) FindLinkedAll

func (r *Property) FindLinkedAll(ctx context.Context, id id.SceneID) (property.List, error)

func (*Property) Init

func (r *Property) Init(ctx context.Context) error

func (*Property) Remove

func (r *Property) Remove(ctx context.Context, id id.PropertyID) error

func (*Property) RemoveAll

func (r *Property) RemoveAll(ctx context.Context, ids id.PropertyIDList) error

func (*Property) RemoveByScene

func (r *Property) RemoveByScene(ctx context.Context, sceneID id.SceneID) error

func (*Property) Save

func (r *Property) Save(ctx context.Context, property *property.Property) error

func (*Property) SaveAll

func (r *Property) SaveAll(ctx context.Context, properties property.List) error

func (*Property) UpdateSchemaPlugin

func (r *Property) UpdateSchemaPlugin(ctx context.Context, old, new id.PluginID, s id.SceneID) error

type PropertySchema

type PropertySchema struct {
	// contains filtered or unexported fields
}

func NewPropertySchema

func NewPropertySchema(client *mongox.Client) *PropertySchema

func (*PropertySchema) Filtered

func (*PropertySchema) FindByID

func (*PropertySchema) FindByIDs

func (*PropertySchema) Init

func (r *PropertySchema) Init(ctx context.Context) error

func (*PropertySchema) Remove

func (*PropertySchema) RemoveAll

func (r *PropertySchema) RemoveAll(ctx context.Context, ids []id.PropertySchemaID) error

func (*PropertySchema) Save

func (*PropertySchema) SaveAll

type Scene

type Scene struct {
	// contains filtered or unexported fields
}

func NewScene

func NewScene(client *mongox.Client) *Scene

func (*Scene) Filtered

func (r *Scene) Filtered(f repo.WorkspaceFilter) repo.Scene

func (*Scene) FindByID

func (r *Scene) FindByID(ctx context.Context, id id.SceneID) (*scene.Scene, error)

func (*Scene) FindByIDs

func (r *Scene) FindByIDs(ctx context.Context, ids id.SceneIDList) (scene.List, error)

func (*Scene) FindByProject

func (r *Scene) FindByProject(ctx context.Context, id id.ProjectID) (*scene.Scene, error)

func (*Scene) FindByWorkspace

func (r *Scene) FindByWorkspace(ctx context.Context, workspaces ...accountdomain.WorkspaceID) (scene.List, error)

func (*Scene) Init

func (r *Scene) Init(ctx context.Context) error

func (*Scene) Remove

func (r *Scene) Remove(ctx context.Context, id id.SceneID) error

func (*Scene) Save

func (r *Scene) Save(ctx context.Context, scene *scene.Scene) error

type SceneLock

type SceneLock struct {
	// contains filtered or unexported fields
}

func NewSceneLock

func NewSceneLock(client *mongox.Client) *SceneLock

func (*SceneLock) GetAllLock

func (r *SceneLock) GetAllLock(ctx context.Context, ids id.SceneIDList) ([]scene.LockMode, error)

func (*SceneLock) GetLock

func (r *SceneLock) GetLock(ctx context.Context, sceneID id.SceneID) (scene.LockMode, error)

func (*SceneLock) ReleaseAllLock

func (r *SceneLock) ReleaseAllLock(ctx context.Context) error

func (*SceneLock) SaveLock

func (r *SceneLock) SaveLock(ctx context.Context, sceneID id.SceneID, lock scene.LockMode) error

type Storytelling

type Storytelling struct {
	// contains filtered or unexported fields
}

func NewStorytelling

func NewStorytelling(client *mongox.Client) *Storytelling

func (*Storytelling) Filtered

func (*Storytelling) FindByID

func (r *Storytelling) FindByID(ctx context.Context, id id.StoryID) (*storytelling.Story, error)

func (*Storytelling) FindByIDs

func (*Storytelling) FindByPublicName

func (r *Storytelling) FindByPublicName(ctx context.Context, name string) (*storytelling.Story, error)

func (*Storytelling) FindByScene

func (r *Storytelling) FindByScene(ctx context.Context, id id.SceneID) (*storytelling.StoryList, error)

func (*Storytelling) Init

func (r *Storytelling) Init(ctx context.Context) error

func (*Storytelling) Remove

func (r *Storytelling) Remove(ctx context.Context, id id.StoryID) error

func (*Storytelling) RemoveAll

func (r *Storytelling) RemoveAll(ctx context.Context, ids id.StoryIDList) error

func (*Storytelling) RemoveByScene

func (r *Storytelling) RemoveByScene(ctx context.Context, id id.SceneID) error

func (*Storytelling) Save

func (r *Storytelling) Save(ctx context.Context, story storytelling.Story) error

func (*Storytelling) SaveAll

func (r *Storytelling) SaveAll(ctx context.Context, stories storytelling.StoryList) error

type Style

type Style struct {
	// contains filtered or unexported fields
}

func NewStyle

func NewStyle(client *mongox.Client) *Style

func (*Style) Filtered

func (r *Style) Filtered(f repo.SceneFilter) repo.Style

func (*Style) FindByID

func (r *Style) FindByID(ctx context.Context, id id.StyleID) (*scene.Style, error)

func (*Style) FindByIDs

func (r *Style) FindByIDs(ctx context.Context, ids id.StyleIDList) (*scene.StyleList, error)

func (*Style) FindByScene

func (r *Style) FindByScene(ctx context.Context, id id.SceneID) (*scene.StyleList, error)

func (*Style) Init

func (r *Style) Init(ctx context.Context) error

func (*Style) Remove

func (r *Style) Remove(ctx context.Context, id id.StyleID) error

func (*Style) RemoveAll

func (r *Style) RemoveAll(ctx context.Context, ids id.StyleIDList) error

func (*Style) RemoveByScene

func (r *Style) RemoveByScene(ctx context.Context, id id.SceneID) error

func (*Style) Save

func (r *Style) Save(ctx context.Context, style scene.Style) error

func (*Style) SaveAll

func (r *Style) SaveAll(ctx context.Context, styles scene.StyleList) error

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func NewTag

func NewTag(client *mongox.Client) *Tag

func (*Tag) Filtered

func (r *Tag) Filtered(f repo.SceneFilter) repo.Tag

func (*Tag) FindByID

func (r *Tag) FindByID(ctx context.Context, id id.TagID) (tag.Tag, error)

func (*Tag) FindByIDs

func (r *Tag) FindByIDs(ctx context.Context, ids id.TagIDList) ([]*tag.Tag, error)

func (*Tag) FindByScene

func (r *Tag) FindByScene(ctx context.Context, id id.SceneID) ([]*tag.Tag, error)

func (*Tag) FindGroupByID

func (r *Tag) FindGroupByID(ctx context.Context, id id.TagID) (*tag.Group, error)

func (*Tag) FindGroupByIDs

func (r *Tag) FindGroupByIDs(ctx context.Context, ids id.TagIDList) ([]*tag.Group, error)

func (*Tag) FindGroupByItem

func (r *Tag) FindGroupByItem(ctx context.Context, tagID id.TagID) (*tag.Group, error)

func (*Tag) FindItemByID

func (r *Tag) FindItemByID(ctx context.Context, id id.TagID) (*tag.Item, error)

func (*Tag) FindItemByIDs

func (r *Tag) FindItemByIDs(ctx context.Context, ids id.TagIDList) ([]*tag.Item, error)

func (*Tag) FindRootsByScene

func (r *Tag) FindRootsByScene(ctx context.Context, id id.SceneID) ([]*tag.Tag, error)

func (*Tag) Init

func (r *Tag) Init(ctx context.Context) error

func (*Tag) Remove

func (r *Tag) Remove(ctx context.Context, id id.TagID) error

func (*Tag) RemoveAll

func (r *Tag) RemoveAll(ctx context.Context, ids id.TagIDList) error

func (*Tag) RemoveByScene

func (r *Tag) RemoveByScene(ctx context.Context, sceneID id.SceneID) error

func (*Tag) Save

func (r *Tag) Save(ctx context.Context, tag tag.Tag) error

func (*Tag) SaveAll

func (r *Tag) SaveAll(ctx context.Context, tags []*tag.Tag) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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