This commit is contained in:
crusader
2017-11-27 20:54:15 +09:00
parent 9ea3676888
commit b2bfe5bb2d
8 changed files with 104 additions and 7 deletions

22
client/client.go Normal file
View File

@@ -0,0 +1,22 @@
package client
import (
"git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/rpc/client"
"git.loafle.net/commons_go/rpc/protocol"
)
func NewClientHandler(addr string, codec protocol.ClientCodec, notifyRegistry rpc.Registry) ClientHandler {
ch := &ClientHandlers{}
ch.addr = addr
ch.RPCRegistry = notifyRegistry
ch.Codec = codec
return ch
}
type ClientHandlers struct {
client.ClientHandlers
addr string
}

7
client/client_handler.go Normal file
View File

@@ -0,0 +1,7 @@
package client
import "git.loafle.net/commons_go/rpc/client"
type ClientHandler interface {
client.ClientHandler
}

View File

@@ -0,0 +1,2 @@
package client