Documentation ¶
Index ¶
- Constants
- func Failed(w http.ResponseWriter, code int, message string)
- func Success(w http.ResponseWriter, result interface{})
- type ConsumeConfig
- func (ConsumeConfig) Create(w http.ResponseWriter, r *http.Request)
- func (ConsumeConfig) Delete(w http.ResponseWriter, r *http.Request)
- func (ConsumeConfig) Get(w http.ResponseWriter, r *http.Request)
- func (ConsumeConfig) Page(w http.ResponseWriter, r *http.Request)
- func (ConsumeConfig) Update(w http.ResponseWriter, r *http.Request)
- func (ConsumeConfig) WorkList(w http.ResponseWriter, r *http.Request)
- type ConsumeServerMap
- type Httper
- type WorkServer
- func (WorkServer) All(w http.ResponseWriter, r *http.Request)
- func (WorkServer) Create(w http.ResponseWriter, r *http.Request)
- func (WorkServer) Delete(w http.ResponseWriter, r *http.Request)
- func (WorkServer) Get(w http.ResponseWriter, r *http.Request)
- func (WorkServer) Page(w http.ResponseWriter, r *http.Request)
- func (WorkServer) Update(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const HttpCodeBadGateway = 502
View Source
const HttpCodeBadRequest = http.StatusBadRequest
View Source
const HttpCodeForbidden = 403
View Source
const HttpCodeHttpCodeForbidden = http.StatusUnauthorized
View Source
const HttpCodeInternalServerError = 500
View Source
const HttpCodeNotFound = 404
View Source
const HttpCodeNotImplemented = 501
View Source
const HttpCodeOK = http.StatusOK
Variables ¶
This section is empty.
Functions ¶
func Success ¶
func Success(w http.ResponseWriter, result interface{})
Types ¶
type ConsumeConfig ¶
type ConsumeConfig struct { }
func (ConsumeConfig) Create ¶
func (ConsumeConfig) Create(w http.ResponseWriter, r *http.Request)
func (ConsumeConfig) Delete ¶
func (ConsumeConfig) Delete(w http.ResponseWriter, r *http.Request)
func (ConsumeConfig) Get ¶
func (ConsumeConfig) Get(w http.ResponseWriter, r *http.Request)
func (ConsumeConfig) Page ¶
func (ConsumeConfig) Page(w http.ResponseWriter, r *http.Request)
func (ConsumeConfig) Update ¶
func (ConsumeConfig) Update(w http.ResponseWriter, r *http.Request)
func (ConsumeConfig) WorkList ¶
func (ConsumeConfig) WorkList(w http.ResponseWriter, r *http.Request)
type ConsumeServerMap ¶
type ConsumeServerMap struct { }
func (ConsumeServerMap) Create ¶
func (ConsumeServerMap) Create(w http.ResponseWriter, r *http.Request)
func (ConsumeServerMap) Delete ¶
func (ConsumeServerMap) Delete(w http.ResponseWriter, r *http.Request)
func (ConsumeServerMap) GetWork ¶
func (ConsumeServerMap) GetWork(w http.ResponseWriter, r *http.Request)
func (ConsumeServerMap) Update ¶
func (ConsumeServerMap) Update(w http.ResponseWriter, r *http.Request)
type WorkServer ¶
type WorkServer struct { }
func (WorkServer) All ¶
func (WorkServer) All(w http.ResponseWriter, r *http.Request)
func (WorkServer) Create ¶
func (WorkServer) Create(w http.ResponseWriter, r *http.Request)
func (WorkServer) Delete ¶
func (WorkServer) Delete(w http.ResponseWriter, r *http.Request)
func (WorkServer) Get ¶
func (WorkServer) Get(w http.ResponseWriter, r *http.Request)
func (WorkServer) Page ¶
func (WorkServer) Page(w http.ResponseWriter, r *http.Request)
func (WorkServer) Update ¶
func (WorkServer) Update(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.