addspot

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 AddSpotMeta = endpointdef.New(
	"addSpot",
	"/spots",
	http.MethodPost,
	http.StatusCreated,
)

AddSpotMeta holds the endpoint information

Functions

This section is empty.

Types

type AddSpotRequest

type AddSpotRequest spot.Details

AddSpotRequest is the request structure

func (AddSpotRequest) Validate

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

type AddSpotResponse

type AddSpotResponse spot.Details

AddSpotResponse holds the response structure

func AddSpot

func AddSpot(ctx context.Context, request AddSpotRequest, odsDB db.DB) (AddSpotResponse, *errors.ODSError)

AddSpot adds a spot to your list

Jump to

Keyboard shortcuts

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