Documentation ¶
Index ¶
- func ByeDecodeRequest(c context.Context, request *http.Request) (interface{}, error)
- func ByeDecodeResponseFunc(c context.Context, res *http.Response) (response interface{}, err error)
- func ByeEncodeRequestFunc(c context.Context, request *http.Request, r interface{}) error
- func ByeEncodeResponse(c context.Context, w http.ResponseWriter, response interface{}) error
- func HelloDecodeRequest(c context.Context, request *http.Request) (interface{}, error)
- func HelloDecodeResponseFunc(c context.Context, res *http.Response) (response interface{}, err error)
- func HelloEncodeRequestFunc(c context.Context, request *http.Request, r interface{}) error
- func HelloEncodeResponse(c context.Context, w http.ResponseWriter, response interface{}) error
- func MakeServerEndPointBye(s IServer) endpoint.Endpoint
- func MakeServerEndPointHello(s IServer) endpoint.Endpoint
- type ByeRequest
- type ByeResponse
- type HelloRequest
- type HelloResponse
- type IServer
- type Request
- type Response
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByeDecodeRequest ¶
ByeDecodeRequest 解码 后封装至 EndPoint中定义的 Request格式中
func ByeDecodeResponseFunc ¶
ByeDecodeResponseFunc : 解密服务方传回的数据
func ByeEncodeRequestFunc ¶
ByeEncodeRequestFunc : 处理请求数据符合服务方要求的数据
func ByeEncodeResponse ¶
func ByeEncodeResponse(c context.Context, w http.ResponseWriter, response interface{}) error
ByeEncodeResponse sayEncodeResponse 通过响应封装成 EndPoint中定义的 Response结构体即可
func HelloDecodeRequest ¶
HelloDecodeRequest 解码 后封装至 EndPoint中定义的 Request格式中
func HelloDecodeResponseFunc ¶
func HelloDecodeResponseFunc(c context.Context, res *http.Response) (response interface{}, err error)
HelloDecodeResponseFunc HelloDecodeResponseFunc: 解密服务方传回的数据
func HelloEncodeRequestFunc ¶
HelloEncodeRequestFunc HelloEncodeRequestFunc: 处理请求数据符合服务方要求的数据
func HelloEncodeResponse ¶
func HelloEncodeResponse(c context.Context, w http.ResponseWriter, response interface{}) error
HelloEncodeResponse 通过响应封装成 EndPoint中定义的 Response结构体即可
func MakeServerEndPointBye ¶
MakeServerEndPointBye 这里创建构造函数 Bye方法的业务处理
func MakeServerEndPointHello ¶
MakeServerEndPointHello 这里创建 “构造函数“ hello方法的业务处理
Types ¶
Click to show internal directories.
Click to hide internal directories.