Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateSpotMeta = endpointdef.New( "UpdateSpot", "/spots/{"+endpoints.ParamSpotName+"}", http.MethodPut, http.StatusOK, )
UpdateSpotMeta holds the endpoint information
Functions ¶
This section is empty.
Types ¶
type UpdateSpotRequest ¶
UpdateSpotRequest is the request
func (UpdateSpotRequest) Validate ¶
func (request UpdateSpotRequest) Validate() *errors.ODSError
type UpdateSpotResponse ¶
UpdateSpotResponse is the response
func UpdateSpot ¶
func UpdateSpot(ctx context.Context, request UpdateSpotRequest, odsDB db.DB) (UpdateSpotResponse, *errors.ODSError)
UpdateSpot returns all the details about a given spot
Click to show internal directories.
Click to hide internal directories.