Documentation
¶
Index ¶
- Variables
- type LabelRepo
- func (n *LabelRepo) CreateLabel(ctx context.Context, args model.Label) (model.Label, error)
- func (n *LabelRepo) DeleteLabel(ctx context.Context, id int64) error
- func (n *LabelRepo) GetLabel(ctx context.Context, id int64) (model.Label, error)
- func (n *LabelRepo) ListLabels(ctx context.Context) ([]model.Label, error)
- func (n *LabelRepo) UpdateLabel(ctx context.Context, args model.Label) (model.Label, error)
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 (*LabelRepo) CreateLabel ¶
func (*LabelRepo) DeleteLabel ¶
func (*LabelRepo) ListLabels ¶
Click to show internal directories.
Click to hide internal directories.