gifthandler

package
v0.0.0-...-0eec0e3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

Handler is gift web handler

func New

func New(s service, l glog.Logger) *Handler

New return new rest api gift handler

func (*Handler) Create

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

Create handle insert gift HTTP Request

func (*Handler) Delete

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

Delete handle delete gift HTTP Request

func (*Handler) Get

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

Get handle get gift HTTP request

func (*Handler) GetAll

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

GetAll handle get gifts HTTP Request

func (*Handler) Update

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

Update handle modify gift HTTP Request

Jump to

Keyboard shortcuts

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