Documentation ¶
Overview ¶
Package postgres - Postgres implementation of service.Repo and repo.EventRepo
Index ¶
- type Repo
- func (r *Repo) Create(ctx context.Context, pkg model.Package) (*uint64, error)
- func (r *Repo) Delete(ctx context.Context, id uint64) error
- func (r *Repo) Get(ctx context.Context, id uint64) (*model.Package, error)
- func (r *Repo) List(ctx context.Context, offset uint64, limit uint64) ([]model.Package, error)
- func (r *Repo) Lock(ctx context.Context, n uint64) ([]model.PackageEvent, error)
- func (r *Repo) Remove(ctx context.Context, eventIDs []uint64) error
- func (r *Repo) Unlock(ctx context.Context, eventID []uint64) error
- func (r *Repo) Update(ctx context.Context, pkg model.Package) 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 - Postgres implementation of service.Repo and repo.EventRepo
func NewPostgresRepo ¶
NewPostgresRepo returns Postgres implementation of service.Repo and repo.EventRepo
Click to show internal directories.
Click to hide internal directories.