clean client
This commit is contained in:
parent
2daefc516b
commit
a6acdd0ad1
1 changed files with 0 additions and 9 deletions
|
@ -15,7 +15,6 @@ type Client interface {
|
||||||
|
|
||||||
Connection
|
Connection
|
||||||
|
|
||||||
Conn() Connection
|
|
||||||
HandleCommand(*pb.Command)
|
HandleCommand(*pb.Command)
|
||||||
HandleMessage([]byte)
|
HandleMessage([]byte)
|
||||||
}
|
}
|
||||||
|
@ -44,14 +43,6 @@ func (n *Nexus) NewClient(conn Connection) Client {
|
||||||
return sess
|
return sess
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *client) Registry() Registry {
|
|
||||||
return c.nexus
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *client) Conn() Connection {
|
|
||||||
return c.Connection
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *client) HandleMessage(mesgBytes []byte) {
|
func (c *client) HandleMessage(mesgBytes []byte) {
|
||||||
var msg pb.Command
|
var msg pb.Command
|
||||||
err := proto.Unmarshal(mesgBytes, &msg)
|
err := proto.Unmarshal(mesgBytes, &msg)
|
||||||
|
|
Loading…
Reference in a new issue