Documentation
¶
Index ¶
- type HttpHandler
- func (hs *HttpHandler) DelHandler(w http.ResponseWriter, r *http.Request)
- func (hs *HttpHandler) GetHandler(w http.ResponseWriter, r *http.Request)
- func (hs *HttpHandler) GetListKeysHandler(w http.ResponseWriter, r *http.Request)
- func (hs *HttpHandler) PostHandler(w http.ResponseWriter, r *http.Request)
- func (hs *HttpHandler) PutHandler(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHandler ¶
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
Click to show internal directories.
Click to hide internal directories.