Documentation
¶
Index ¶
- Variables
- type APIRouter
- type Control
- func (c *Control) CreateIfNotExists(ctx context.Context, tag string) (*Tag, error)
- func (c *Control) Delete(ctx context.Context, exec bob.Executor, tag string) error
- func (c *Control) Get(ctx context.Context, tag string) (*Tag, error)
- func (c *Control) GetNext(ctx context.Context) (string, error)
- func (c *Control) MarkTagUnused(ctx context.Context, exec bob.Executor, tag string) error
- type ListTagsPageViewModel
- type ListTagsQuery
- type RepoSQLite
- func (*RepoSQLite) Create(ctx context.Context, exec bob.Executor, tag *Tag) (*Tag, error)
- func (*RepoSQLite) Delete(ctx context.Context, exec bob.Executor, tag string) error
- func (*RepoSQLite) Get(ctx context.Context, exec bob.Executor, tag string) (*Tag, error)
- func (*RepoSQLite) GetUnused(ctx context.Context, exec bob.Executor) (*Tag, error)
- func (*RepoSQLite) List(ctx context.Context, exec bob.Executor, query ListTagsQuery) (*TagListPage, error)
- func (*RepoSQLite) MarkTagUnused(ctx context.Context, exec bob.Executor, tag string) error
- func (*RepoSQLite) MarkTagUsed(ctx context.Context, exec bob.Executor, tag string) error
- func (*RepoSQLite) NextSequential(ctx context.Context, exec bob.Executor) (int64, error)
- type Tag
- type TagListPage
- type TagRepo
- type UIRouter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTagNotFound = errors.New("tag not found")
Functions ¶
This section is empty.
Types ¶
type Control ¶
func (*Control) CreateIfNotExists ¶
type ListTagsPageViewModel ¶
type ListTagsPageViewModel struct {
Page *TagListPage
Query ListTagsQuery
}
type ListTagsQuery ¶
type RepoSQLite ¶
type RepoSQLite struct{}
func (*RepoSQLite) List ¶
func (*RepoSQLite) List(ctx context.Context, exec bob.Executor, query ListTagsQuery) (*TagListPage, error)
func (*RepoSQLite) MarkTagUnused ¶
func (*RepoSQLite) MarkTagUsed ¶
func (*RepoSQLite) NextSequential ¶
type TagListPage ¶
type TagRepo ¶
type TagRepo interface {
List(ctx context.Context, exec bob.Executor, query ListTagsQuery) (*TagListPage, error)
GetUnused(ctx context.Context, exec bob.Executor) (*Tag, error)
Get(ctx context.Context, exec bob.Executor, tag string) (*Tag, error)
NextSequential(ctx context.Context, exec bob.Executor) (int64, error)
Create(ctx context.Context, exec bob.Executor, tag *Tag) (*Tag, error)
MarkTagUsed(ctx context.Context, exec bob.Executor, tag string) error
MarkTagUnused(ctx context.Context, exec bob.Executor, tag string) error
Delete(ctx context.Context, exec bob.Executor, tag string) error
}
Click to show internal directories.
Click to hide internal directories.