Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + var ErrInvalidID = errors.New("ID is not in its proper form") + var ErrNotFound = errors.New("tag not found") + type Core struct + func NewCore(log *zap.SugaredLogger, sqlxDB *sqlx.DB) Core + func (c Core) Create(ctx context.Context, nt NewTag, now time.Time) (Tag, error) + func (c Core) Delete(ctx context.Context, tagID string) error + func (c Core) QueryByID(ctx context.Context, tagID string) (Tag, error) + func (c Core) QueryWorkspaceTags(ctx context.Context, workspaceID string, pageNumber, rowsPerPage int) ([]Tag, error) + func (c Core) Update(ctx context.Context, tagID string, ut UpdateTag, now time.Time) error + type NewTag struct + Name string + Wid string + type Tag struct + DateCreated time.Time + DateUpdated time.Time + ID string + Name string + Wid string + type UpdateTag struct + Name *string