Add groups to NatsResponse
This commit is contained in:
@@ -17,15 +17,16 @@ var ressourceCols = []oclib.LibDataEnum{
|
||||
|
||||
var SearchStream = map[string]chan *peer.Peer{}
|
||||
|
||||
func EmitNATS(user string, message tools.PropalgationMessage) {
|
||||
func EmitNATS(user string, groups []string, message tools.PropalgationMessage) {
|
||||
b, _ := json.Marshal(message)
|
||||
if message.Action == tools.PB_SEARCH {
|
||||
SearchStream[user] = make(chan *peer.Peer, 128)
|
||||
}
|
||||
fmt.Println("qkjbndkqkjdnqksm")
|
||||
tools.NewNATSCaller().SetNATSPub(tools.PROPALGATION_EVENT, tools.NATSResponse{
|
||||
FromApp: "oc-peer",
|
||||
Datatype: -1,
|
||||
User: user,
|
||||
Groups: groups,
|
||||
Method: int(tools.PROPALGATION_EVENT),
|
||||
Payload: b,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user