Directories ¶
Path | Synopsis |
---|---|
//init pu,err:=NewProducer("192.168.0.197",4150) if err!=nil{ //error } b,_:=json.Marshal(obj) //发送 err = pu.Publish("topic",b) if err!=nil{ //error }
|
//init pu,err:=NewProducer("192.168.0.197",4150) if err!=nil{ //error } b,_:=json.Marshal(obj) //发送 err = pu.Publish("topic",b) if err!=nil{ //error } |
使用方法: 1.
|
使用方法: 1. |
使用方法: client,err:=NewClient("182.168.0.197",10000) ...
|
使用方法: client,err:=NewClient("182.168.0.197",10000) ... |
Click to show internal directories.
Click to hide internal directories.