Documentation
¶
Index ¶
- type Handler
- type Store
- func (s *Store) AddWeightAvailable(listingId int, addValue float64) error
- func (s *Store) CreateListing(listing types.Listing) error
- func (s *Store) DeleteListing(id int) error
- func (s *Store) GetAllListings(carrierId int) ([]types.ListingReturnFromDB, error)
- func (s *Store) GetListingByID(id int) (*types.ListingReturnFromDB, error)
- func (s *Store) GetListingByPayload(carrierName string, destination string, weightAvailable float64, ...) (*types.ListingReturnFromDB, error)
- func (s *Store) GetListingsByCarrierID(carrierId int) ([]types.ListingReturnFromDB, error)
- func (s *Store) IsListingDuplicate(carrierId int, destination string, weightAvailable float64, ...) (bool, error)
- func (s *Store) ModifyListing(id int, listing types.Listing) error
- func (s *Store) SubtractWeightAvailable(listingId int, minusValue float64) error
- func (s *Store) UpdateListingExpStatus() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(listingStore types.ListingStore, userStore types.UserStore, currencyStore types.CurrencyStore, reviewStore types.ReviewStore, bankDetailStore types.BankDetailStore, orderStore types.OrderStore, fcmHistoryStore types.FCMHistoryStore) *Handler
func (*Handler) RegisterRoutes ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddWeightAvailable ¶
func (*Store) DeleteListing ¶
func (*Store) GetAllListings ¶
func (s *Store) GetAllListings(carrierId int) ([]types.ListingReturnFromDB, error)
func (*Store) GetListingByID ¶
func (s *Store) GetListingByID(id int) (*types.ListingReturnFromDB, error)
func (*Store) GetListingByPayload ¶
func (*Store) GetListingsByCarrierID ¶
func (s *Store) GetListingsByCarrierID(carrierId int) ([]types.ListingReturnFromDB, error)
func (*Store) IsListingDuplicate ¶
func (*Store) SubtractWeightAvailable ¶
func (*Store) UpdateListingExpStatus ¶
Click to show internal directories.
Click to hide internal directories.