Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func XDial ¶
dial Unified interface rpcAddr is a general format (protocol@addr) to represent a rpc server eg, [email protected]:7001, [email protected]:9999, unix@/tmp/geerpc.sock
Types ¶
type XClient ¶
type XClient struct {
// contains filtered or unexported fields
}
func NewXClient ¶
return a XClient instanse
func (*XClient) BroadCast ¶
func (x *XClient) BroadCast(ctx context.Context, serviceMethod string, args, reply interface{}) error
Broadcast invokes every server registered in discovery to call this serviceMethod
Click to show internal directories.
Click to hide internal directories.