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 ¶
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
Click to show internal directories.
Click to hide internal directories.