tag

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tag handles the management of tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(opts Opts) (*Manager, error)

New creates and returns a new instance of the Manager.

func (*Manager) Create

func (t *Manager) Create(name string) (models.Tag, error)

Create creates a new tag.

func (*Manager) Delete

func (t *Manager) Delete(id int) error

Delete deletes a tag by ID.

func (*Manager) GetAll

func (t *Manager) GetAll() ([]models.Tag, error)

GetAll retrieves all tags.

func (*Manager) Update

func (t *Manager) Update(id int, name string) (models.Tag, error)

Update updates a tag by id.

type Opts

type Opts struct {
	DB   *sqlx.DB
	Lo   *logf.Logger
	I18n *i18n.I18n
}

Opts contains options for initializing the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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