2017-11-29 09:55:24 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import "git.loafle.net/commons_go/rpc/protocol"
|
|
|
|
|
|
|
|
type ClientReadWriteCloseHandler interface {
|
2017-11-30 03:36:03 +00:00
|
|
|
Connect(clientCTX ClientContext) (interface{}, error)
|
2018-03-23 07:43:05 +00:00
|
|
|
NewDecoder(clientCTX ClientContext, codec protocol.ClientCodec, conn interface{}) (interface{}, error)
|
|
|
|
ReadResponse(clientCTX ClientContext, codec protocol.ClientCodec, decoder interface{}) (protocol.ClientResponseCodec, error)
|
2018-03-20 06:31:54 +00:00
|
|
|
WriteRequest(clientCTX ClientContext, codec protocol.ClientCodec, conn interface{}, method string, params []interface{}, id interface{}) error
|
2017-11-30 03:36:03 +00:00
|
|
|
Disconnect(clientCTX ClientContext, conn interface{})
|
2017-11-29 09:55:24 +00:00
|
|
|
|
|
|
|
Validate()
|
|
|
|
}
|