Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auction ¶
type Auction struct { Id string ProductName string Category string Description string Condition ProductCondition Status AuctionStatus Timestamp time.Time }
func CreateAuction ¶
func CreateAuction( productName, category, description string, condition ProductCondition) (*Auction, *internal_error.InternalError)
func (*Auction) Validate ¶
func (au *Auction) Validate() *internal_error.InternalError
type AuctionRepositoryInterface ¶
type AuctionRepositoryInterface interface { CreateAuction( ctx context.Context, auctionEntity *Auction) *internal_error.InternalError FindAuctions( ctx context.Context, status AuctionStatus, category, productName string) ([]Auction, *internal_error.InternalError) FindAuctionById( ctx context.Context, id string) (*Auction, *internal_error.InternalError) }
type ProductCondition ¶
type ProductCondition int
const ( New ProductCondition = iota + 1 Used Refurbished )
Click to show internal directories.
Click to hide internal directories.