overflow_discovery/client/client.go

16 lines
357 B
Go
Raw Normal View History

2017-10-31 10:27:26 +00:00
package client
import (
2017-11-30 10:16:55 +00:00
crc "git.loafle.net/commons_go/rpc/client"
crcrs "git.loafle.net/commons_go/rpc/client/rwc/socket"
csc "git.loafle.net/commons_go/server/client"
2017-10-31 10:27:26 +00:00
)
2017-11-30 10:16:55 +00:00
func New(clientHandler ClientHandler, socketBuilder csc.SocketBuilder) crc.Client {
cRWCHandler := crcrs.New(socketBuilder)
2017-10-31 10:27:26 +00:00
2017-11-30 10:16:55 +00:00
c := crc.New(clientHandler, cRWCHandler)
2017-10-31 10:27:26 +00:00
return c
}