deletespot

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeleteSpotMeta = endpointdef.New(
	"DeleteSpotDetails",
	"/spots/{"+endpoints.ParamSpotName+"}",
	http.MethodDelete,
	http.StatusNoContent,
)

DeleteSpotMeta holds the endpoint information

Functions

This section is empty.

Types

type DeleteSpotRequest

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

DeleteSpotRequest is the request structure

type DeleteSpotResponse

type DeleteSpotResponse struct{}

DeleteSpotResponse holds the response structure

func DeleteSpot

func DeleteSpot(ctx context.Context, request DeleteSpotRequest, odsDB db.DB) (DeleteSpotResponse, *errors.ODSError)

DeleteSpot deletes a given spot endpoint is idempotent which means even the image is not deleted, we return the same response

Jump to

Keyboard shortcuts

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