updatespot

package
v0.0.0-...-bd08887 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 10 Imported by: 0

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

type UpdateSpotRequest spot.Details

UpdateSpotRequest is the request

func (UpdateSpotRequest) Validate

func (request UpdateSpotRequest) Validate() *errors.ODSError

type UpdateSpotResponse

type UpdateSpotResponse spot.Details

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

Jump to

Keyboard shortcuts

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