handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetItemWithIdHandler

func GetItemWithIdHandler(w http.ResponseWriter, r *http.Request)

GetItemWithIdHandler returns item with specified id

func GetItemsHandler

func GetItemsHandler(w http.ResponseWriter, r *http.Request)

GetItemsHandler returns a static list of items, no query params required

func GetWithQueryParamsHandler

func GetWithQueryParamsHandler(w http.ResponseWriter, r *http.Request)

GetWithQueryParamsHandler returns query-based filtered list of items

func WelcomeHandler

func WelcomeHandler(w http.ResponseWriter, r *http.Request)

WelcomeHandler returns welcome message for home URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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