This commit is contained in:
crusader 2017-11-30 12:43:52 +09:00
parent e4d00640d2
commit 92448ee89d
3 changed files with 1 additions and 12 deletions

View File

@ -8,6 +8,7 @@ import (
"git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/rpc/protocol"
cuc "git.loafle.net/commons_go/util/context"
)
type ClientHandlers struct {

View File

@ -1,7 +1,6 @@
package socket
import (
"fmt"
"io"
"git.loafle.net/commons_go/logging"
@ -18,12 +17,6 @@ func New(address string) client.ClientReadWriteCloseHandler {
type ClientReadWriteCloseHandlers struct {
client.ClientReadWriteCloseHandlers
Address string
}
func (crwch *ClientReadWriteCloseHandlers) Connect(clientCTX client.ClientContext) (interface{}, error) {
return nil, fmt.Errorf("RPC Client RWC Handler: ClientHandlers method[Connect] is not implement")
}
func (crwch *ClientReadWriteCloseHandlers) ReadResponse(clientCTX client.ClientContext, codec protocol.ClientCodec, conn interface{}) (protocol.ClientResponseCodec, error) {

View File

@ -1,7 +1,6 @@
package fasthttp
import (
"fmt"
"io"
"github.com/gorilla/websocket"
@ -19,10 +18,6 @@ type ClientReadWriteCloseHandlers struct {
client.ClientReadWriteCloseHandlers
}
func (crwch *ClientReadWriteCloseHandlers) Connect(clientCTX client.ClientContext) (interface{}, error) {
return nil, fmt.Errorf("RPC Client RWC Handler: ClientHandlers method[Connect] is not implement")
}
func (crwch *ClientReadWriteCloseHandlers) ReadResponse(clientCTX client.ClientContext, codec protocol.ClientCodec, conn interface{}) (protocol.ClientResponseCodec, error) {
if nil == conn {
return nil, io.EOF