2017-11-29 09:55:24 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"git.loafle.net/commons_go/rpc/protocol"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ClientReadWriteCloseHandlers struct {
|
|
|
|
}
|
|
|
|
|
2017-11-30 03:36:03 +00:00
|
|
|
func (crwch *ClientReadWriteCloseHandlers) Connect(clientCTX ClientContext) (interface{}, error) {
|
2017-11-29 09:55:24 +00:00
|
|
|
return nil, fmt.Errorf("RPC Client RWC Handler: ClientHandlers method[Connect] is not implement")
|
|
|
|
}
|
|
|
|
|
2018-03-23 09:45:53 +00:00
|
|
|
func (crwch *ClientReadWriteCloseHandlers) ReadResponse(clientCTX ClientContext, codec protocol.ClientCodec, conn interface{}) (protocol.ClientResponseCodec, error) {
|
2017-11-29 09:55:24 +00:00
|
|
|
return nil, fmt.Errorf("RPC Client RWC Handler: ClientHandlers method[ReadResponse] is not implement")
|
|
|
|
}
|
|
|
|
|
2018-03-20 06:31:54 +00:00
|
|
|
func (crwch *ClientReadWriteCloseHandlers) WriteRequest(clientCTX ClientContext, codec protocol.ClientCodec, conn interface{}, method string, params []interface{}, id interface{}) error {
|
2017-11-29 09:55:24 +00:00
|
|
|
return fmt.Errorf("RPC Client RWC Handler: ClientHandlers method[WriteRequest] is not implement")
|
|
|
|
}
|
|
|
|
|
2017-11-30 03:36:03 +00:00
|
|
|
func (crwch *ClientReadWriteCloseHandlers) Disconnect(clientCTX ClientContext, conn interface{}) {
|
2017-11-29 09:55:24 +00:00
|
|
|
// no op
|
|
|
|
}
|
|
|
|
|
|
|
|
func (crwch *ClientReadWriteCloseHandlers) Validate() {
|
|
|
|
|
|
|
|
}
|