Example #1
0
File: main.go Project: newgogo/Exis
//export Subscribe
func Subscribe(pdomain unsafe.Pointer, endpoint *C.char, cb uint64, eb uint64, hn uint64, types *C.char) {
	d := *(*core.Domain)(pdomain)
	go core.MantleSubscribe(d, C.GoString(endpoint), cb, eb, hn, core.MantleUnmarshal(C.GoString(types)))
}
Example #2
0
File: main.go Project: newgogo/Exis
func (d *Domain) Subscribe(endpoint string, cb uint64, eb uint64, fn uint64, types string) {
	go core.MantleSubscribe(d.coreDomain, endpoint, cb, eb, fn, core.MantleUnmarshal(types))
}