controllers

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL