overflow_gateway_websocket/client/client.go

16 lines
238 B
Go
Raw Normal View History

2017-11-27 11:54:15 +00:00
package client
import (
"git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/rpc/client"
)
2017-11-29 10:07:49 +00:00
func New(addr string, registry rpc.Registry) client.Client {
2017-11-27 11:54:15 +00:00
2017-11-29 10:07:49 +00:00
ch := NewClientHandler(addr, registry)
2017-11-27 11:54:15 +00:00
2017-11-29 10:07:49 +00:00
c := client.New(ch)
2017-11-27 11:54:15 +00:00
2017-11-29 10:07:49 +00:00
return c
2017-11-27 11:54:15 +00:00
}