api

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 3 Imported by: 0

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.

func Route

func Route(service *services.ObjectService) *http.ServeMux

Types

This section is empty.

Jump to

Keyboard shortcuts

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