http_handler

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

type HttpHandler struct {
	*engine.DB
}

func NewHttpHandler

func NewHttpHandler(DB *engine.DB) *HttpHandler

func (*HttpHandler) DelHandler

func (hs *HttpHandler) DelHandler(w http.ResponseWriter, r *http.Request)

DelHandler 支持http进行Delete

func (*HttpHandler) GetHandler

func (hs *HttpHandler) GetHandler(w http.ResponseWriter, r *http.Request)

GetHandler 支持http进行Get

func (*HttpHandler) GetListKeysHandler

func (hs *HttpHandler) GetListKeysHandler(w http.ResponseWriter, r *http.Request)

GetListKeysHandler 支持http获取数据库中所有键

func (*HttpHandler) PostHandler

func (hs *HttpHandler) PostHandler(w http.ResponseWriter, r *http.Request)

PostHandler 支持http进行Post

func (*HttpHandler) PutHandler

func (hs *HttpHandler) PutHandler(w http.ResponseWriter, r *http.Request)

PutHandler 支持http进行Put

Jump to

Keyboard shortcuts

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