Exemple #1
0
func NewClient(addr string) (*Client, error) {
	coder := gobcoder.NewCoder()
	return NewClientWithCoder(addr, coder)
}
Exemple #2
0
func NewServer(addr string, service interface{}) (*Server, error) {
	coder := gobcoder.NewCoder()
	return NewServerWithCoder(addr, service, coder)
}