Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handle4JsonStruct ¶
type Handle4JsonStruct struct {
// contains filtered or unexported fields
}
使用Json形式进行数据格式解析
func NewHandle4Json ¶
func NewHandle4Json(_caller serverBase.IApiCaller) *Handle4JsonStruct
创建新的请求处理对象 _caller:调用对象
func (*Handle4JsonStruct) RequestHandle ¶
func (this *Handle4JsonStruct) RequestHandle(response http.ResponseWriter, request *http.Request)
处理请求 response:应答对象 request:请求对象
func (*Handle4JsonStruct) SetTargetServer ¶
func (this *Handle4JsonStruct) SetTargetServer(server *webServer.WebServerStruct)
设置目标服务对象
type Handle4UrlStruct ¶
type Handle4UrlStruct struct {
// contains filtered or unexported fields
}
url形式的数据处理
func NewHandle4Url ¶
func NewHandle4Url(_caller serverBase.IApiCaller) *Handle4UrlStruct
创建新的请求处理对象 _caller:调用对象
func (*Handle4UrlStruct) RequestHandle ¶
func (this *Handle4UrlStruct) RequestHandle(response http.ResponseWriter, request *http.Request)
处理请求 response:应答对象 request:请求对象
func (*Handle4UrlStruct) SetTargetServer ¶
func (this *Handle4UrlStruct) SetTargetServer(server *webServer.WebServerStruct)
设置目标服务对象
type IApiCaller ¶
type IApiCaller interface { // 调用实际处理函数 Call(*common.RequestModel) *common.ResultModel }
Api调用接口
Click to show internal directories.
Click to hide internal directories.