ing
This commit is contained in:
parent
e4d00640d2
commit
92448ee89d
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user