Documentation
¶
Index ¶
- Variables
- func ConvertDBToModel(item gen.Tag) mtag.Tag
- func ConvertModelToDB(item mtag.Tag) gen.Tag
- type Reader
- type TagService
- func (s *TagService) CreateTag(ctx context.Context, ftag mtag.Tag) error
- func (s *TagService) DeleteTag(ctx context.Context, id idwrap.IDWrap) error
- func (s *TagService) GetTag(ctx context.Context, id idwrap.IDWrap) (mtag.Tag, error)
- func (s *TagService) GetTagByWorkspace(ctx context.Context, id idwrap.IDWrap) ([]mtag.Tag, error)
- func (s *TagService) TX(tx *sql.Tx) TagService
- func (s *TagService) UpdateTag(ctx context.Context, ftag mtag.Tag) error
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoTag error = sql.ErrNoRows
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReaderFromQueries ¶
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func New ¶
func New(queries *gen.Queries) TagService
func (*TagService) GetTagByWorkspace ¶
func (*TagService) TX ¶
func (s *TagService) TX(tx *sql.Tx) TagService
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func NewWriterFromQueries ¶
Click to show internal directories.
Click to hide internal directories.