Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buy ¶
type Buy interface { Create(ctx context.Context, userId, companyId int, price int) (model.Buy, error) Delete(ctx context.Context, id int) (model.Buy, error) Get(ctx context.Context, id int) (model.Buy, error) GetBuys(ctx context.Context, companyId int, minPrice int, limit uint64) (id []int, err error) GetAllBuys(ctx context.Context, companyId int, limit, offset uint64) (price []int, err error) DeleteExpired(ctx context.Context) (id []model.BidInfo, err error) }
type Repositories ¶
func NewRepositories ¶
func NewRepositories(db *database.Postgres) *Repositories
type Sale ¶
type Sale interface { Create(ctx context.Context, userId, companyId int, price int) (model.Sale, error) Get(ctx context.Context, id int) (model.Sale, error) Delete(ctx context.Context, id int) (model.Sale, error) GetSales(ctx context.Context, companyId int, maxPrice int, limit uint64) (id []int, err error) GetAllSales(ctx context.Context, companyId int, limit, offset uint64) (price []int, err error) DeleteExpired(ctx context.Context) (id []model.BidInfo, err error) }
Click to show internal directories.
Click to hide internal directories.