Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValuationsController ¶
type ValuationsController struct {
// contains filtered or unexported fields
}
func NewValuationsController ¶
func NewValuationsController(log *zerolog.Logger, userDeviceSvc services.UserDeviceAPIService, natsService *services.NATSService) *ValuationsController
func (*ValuationsController) GetInstantOffer ¶ added in v0.2.3
func (vc *ValuationsController) GetInstantOffer(c *fiber.Ctx) error
GetInstantOffer godoc @Description gets instant offer for a particular user device @Tags user-devices @Produce json @Success 200 {object} @Security BearerAuth @Router /user/devices/{userDeviceID}/instant-offer [get]
func (*ValuationsController) GetOffers ¶
func (vc *ValuationsController) GetOffers(c *fiber.Ctx) error
GetOffers godoc @Description gets offers for a particular user device @Tags user-devices @Produce json @Success 200 {object} controllers.DeviceOffer @Security BearerAuth @Router /user/devices/{userDeviceID}/offers [get]
func (*ValuationsController) GetValuations ¶
func (vc *ValuationsController) GetValuations(c *fiber.Ctx) error
GetValuations godoc @Description gets valuations for a particular user device. Includes only price valuations, not offers. only gets the latest valuation. @Tags user-devices @Produce json @Param userDeviceID path string true "user device id" @Success 200 {object} controllers.DeviceValuation @Security BearerAuth @Router /user/devices/{userDeviceID}/valuations [get]