handler

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	RedisDB *redis.Client
	MongoDB *mongo.Database
}

func (*Handler) AddItem

func (h *Handler) AddItem(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteItem

func (h *Handler) DeleteItem(w http.ResponseWriter, r *http.Request)

func (*Handler) GetItem

func (h *Handler) GetItem(w http.ResponseWriter, r *http.Request)

GetItem function using get one item by id

func (*Handler) GetItems

func (h *Handler) GetItems(w http.ResponseWriter, r *http.Request)

GetItems function using get all items

func (*Handler) UpdateItem

func (h *Handler) UpdateItem(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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