Documentation ¶
Index ¶
- type Entity
- type Pager
- type Repo
- func (Repo) ByHash(ctx context.Context, run storage.Runner, hash string) (Entity, error)
- func (Repo) Delete(ctx context.Context, run storage.Runner, id int64) error
- func (Repo) List(ctx context.Context, run storage.Runner, pager Pager) ([]Entity, error)
- func (p Repo) Persist(ctx context.Context, run storage.Runner, entry Entity) (int64, error)
- func (p Repo) Retrieve(ctx context.Context, run storage.Runner, id int64) (Entity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pager ¶
Pager is a lightweight paging abstraction that we could afford to use only with small databases like SQLLite.
Click to show internal directories.
Click to hide internal directories.