19 lines
462 B
Go
19 lines
462 B
Go
package database
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.dragse.it/anthrove/otter-space-sdk/pkg/models"
|
|
)
|
|
|
|
type Tag interface {
|
|
CreateTag(ctx context.Context, tagName models.AnthroveTagName, tagType models.TagType) error
|
|
|
|
// GetAllTags retrieves all tags.
|
|
GetAllTags(ctx context.Context) ([]models.Tag, error)
|
|
|
|
GetAllTagByTagType(ctx context.Context, tagType models.TagType) ([]models.Tag, error)
|
|
|
|
DeleteTag(ctx context.Context, tagName models.AnthroveTagName) error
|
|
}
|