usecase

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag interface {
	List(ws model.WSName) (tags []*model.Tag, err error)

	// SaveTags persists provided tags.
	// For each tags, if it already exists, update it. Otherwise, add it.
	SaveTags(ws model.WSName, tags []*model.Tag) ([]*model.Tag, error)

	SetTags(ws model.WSName, tags []*model.UnindexedTag) ([]*model.Tag, error)

	// SetTagByNames remove all existing tags and persists provided tags.
	SetTagByNames(ws model.WSName, tagNames []string) ([]*model.Tag, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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