label

package
v0.0.0-...-9db48c8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLabelNotFound = errors.Wrap(errors.ErrNotFound, "label is not found")

	ErrLabelAlreadyExists = errors.Wrap(errors.ErrAlreadyExists, "label already exists")
)

Functions

This section is empty.

Types

type LabelRepo

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

func New

func New(db *sqlx.DB) *LabelRepo

func (*LabelRepo) CreateLabel

func (n *LabelRepo) CreateLabel(ctx context.Context, args model.Label) (model.Label, error)

func (*LabelRepo) DeleteLabel

func (n *LabelRepo) DeleteLabel(ctx context.Context, id int64) error

func (*LabelRepo) GetLabel

func (n *LabelRepo) GetLabel(ctx context.Context, id int64) (model.Label, error)

func (*LabelRepo) ListLabels

func (n *LabelRepo) ListLabels(ctx context.Context) ([]model.Label, error)

func (*LabelRepo) UpdateLabel

func (n *LabelRepo) UpdateLabel(ctx context.Context, args model.Label) (model.Label, error)

Jump to

Keyboard shortcuts

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