Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(service *services.ObjectService) http.HandlerFunc
Delete defines an HTTP handler function for deleting an object by key. It expects a JSON request body with the "key" field and deletes the corresponding object.
func Get ¶
func Get(service *services.ObjectService) http.HandlerFunc
Get defines an HTTP handler function for retrieving an object by key. It expects a JSON request body with the "key" field and retrieves the corresponding object.
func Put ¶
func Put(service *services.ObjectService) http.HandlerFunc
Put defines an HTTP handler function for creating or updating an object. It expects a JSON request body with "key" and "value" fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.