forked from hprose/hprose-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clients.go
30 lines (28 loc) · 1.48 KB
/
clients.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| http://www.hprose.org/ |
| |
\**********************************************************/
/**********************************************************\
* *
* rpc/clients.go *
* *
* hprose clients for Go. *
* *
* LastModified: Sep 21, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
package rpc
// Clients interface for server push
type Clients interface {
IDList(topic string) []string
Exist(topic string, id string) bool
Push(topic string, result interface{}, id ...string)
Broadcast(topic string, result interface{}, callback func([]string))
Multicast(topic string, ids []string, result interface{}, callback func([]string))
Unicast(topic string, id string, result interface{}, callback func(bool))
}