2017-11-29 09:55:24 +00:00
|
|
|
package rpc
|
|
|
|
|
|
|
|
import "git.loafle.net/commons_go/rpc/protocol"
|
|
|
|
|
|
|
|
type ServletReadWriteCloseHandler interface {
|
2018-03-23 07:43:05 +00:00
|
|
|
NewDecoder(servletCTX ServletContext, codec protocol.ServerCodec, conn interface{}) (interface{}, error)
|
|
|
|
|
|
|
|
ReadRequest(servletCTX ServletContext, codec protocol.ServerCodec, decoder interface{}) (protocol.ServerRequestCodec, error)
|
2017-11-29 09:55:24 +00:00
|
|
|
WriteResponse(servletCTX ServletContext, conn interface{}, requestCodec protocol.ServerRequestCodec, result interface{}, err error) error
|
2018-03-20 06:31:54 +00:00
|
|
|
WriteNotification(servletCTX ServletContext, conn interface{}, codec protocol.ServerCodec, method string, params []interface{}) error
|
2017-11-29 09:55:24 +00:00
|
|
|
|
|
|
|
Validate()
|
|
|
|
}
|