Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionV1 = "v1" PathV1 = prefix + VersionV1 )
define vars
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPHandle ¶
type HTTPHandle struct {
// contains filtered or unexported fields
}
HTTPHandle : http handle
func NewHTTPHandle ¶
func NewHTTPHandle(conf *config.ServerConfig) (*HTTPHandle, error)
NewHTTPHandle : return new http handle
func (*HTTPHandle) GetActions ¶
func (a *HTTPHandle) GetActions() []*httpserver.Action
GetActions : Get V1 actions
type RestResponse ¶
type RestResponse struct { Resp *restful.Response HTTPCode int Data interface{} ErrCode commonTypes.ServerErrCode Message string Extra map[string]interface{} WrapFunc func([]byte) []byte }
RestResponse : data struct for http response
Click to show internal directories.
Click to hide internal directories.