getspot

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetSpotMeta = endpointdef.New(
	"getSpotDetails",
	"/spots/{"+endpoints.ParamSpotName+"}",
	http.MethodGet,
	http.StatusOK,
)

GetSpotMeta holds the endpoint information

Functions

This section is empty.

Types

type GetSpotRequest

type GetSpotRequest struct {
	SpotName string `json:"spotName"`
}

GetSpotRequest is the request structure

type GetSpotResponse

type GetSpotResponse spot.Details

GetSpotResponse holds the response structure

func GetSpot

func GetSpot(ctx context.Context, request GetSpotRequest, odsDB db.DB) (GetSpotResponse, *errors.ODSError)

GetSpot returns all the details on a given spot

Jump to

Keyboard shortcuts

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