Documentation ¶
Index ¶
- type Repo
- func (r *Repo) Create(parentCtx context.Context, item repos.Item) (string, error)
- func (r *Repo) DB() *sqlx.DB
- func (r *Repo) Delete(parentCtx context.Context, id string) error
- func (r *Repo) Get(parentCtx context.Context, id string, _ ...repos.ItemOption) (repos.Item, error)
- func (r *Repo) List(ctx context.Context, _ ...repos.ItemOption) (repos.ItemsIterator, error)
- func (r *Repo) Logger() log.Factory
- func (r *Repo) Update(parentCtx context.Context, item repos.Item) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo implements the repos.SampleRepo interface against a postgres DB.
func (*Repo) List ¶
func (r *Repo) List(ctx context.Context, _ ...repos.ItemOption) (repos.ItemsIterator, error)
Click to show internal directories.
Click to hide internal directories.