Documentation
¶
Index ¶
- type Auth
- type Buy
- func (b *Buy) Create(ctx context.Context, userId, companyId int, price int) (model.Buy, error)
- func (b *Buy) Delete(ctx context.Context, id int) (model.Buy, error)
- func (b *Buy) DeleteExpired(ctx context.Context) (id []model.BidInfo, err error)
- func (b *Buy) Get(ctx context.Context, id int) (model.Buy, error)
- func (b *Buy) GetAllBuys(ctx context.Context, companyId int, limit, offset uint64) (price []int, err error)
- func (b *Buy) GetBuys(ctx context.Context, companyId int, minPrice int, limit uint64) (id []int, err error)
- type Company
- type Operation
- type Portfolio
- func (p *Portfolio) AddStock(ctx context.Context, userId, companyId int) error
- func (p *Portfolio) Create(ctx context.Context, userId, companyId int, count int) error
- func (p *Portfolio) Get(ctx context.Context, userId int) ([]model.Asset, error)
- func (p *Portfolio) RemoveStock(ctx context.Context, userId, companyId int) error
- type Sale
- func (s *Sale) Create(ctx context.Context, userId, companyId int, price int) (model.Sale, error)
- func (s *Sale) Delete(ctx context.Context, id int) (model.Sale, error)
- func (s *Sale) DeleteExpired(ctx context.Context) (id []model.BidInfo, err error)
- func (s *Sale) Get(ctx context.Context, id int) (model.Sale, error)
- func (s *Sale) GetAllSales(ctx context.Context, companyId int, limit, offset uint64) (price []int, err error)
- func (s *Sale) GetSales(ctx context.Context, companyId int, maxPrice int, limit uint64) (id []int, err error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buy ¶
type Buy struct {
// contains filtered or unexported fields
}
func (*Buy) DeleteExpired ¶
func (*Buy) GetAllBuys ¶
type Operation ¶
type Operation struct {
// contains filtered or unexported fields
}
func NewOperation ¶
type Portfolio ¶
type Portfolio struct {
// contains filtered or unexported fields
}
func NewPortfolio ¶
type Sale ¶
type Sale struct {
// contains filtered or unexported fields
}
func (*Sale) DeleteExpired ¶
func (*Sale) GetAllSales ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.