Esempio n. 1
0
File: main.go Progetto: newgogo/Exis
//export Publish
func Publish(pdomain unsafe.Pointer, endpoint *C.char, cb uint64, eb uint64, args *C.char) {
	d := *(*core.Domain)(pdomain)
	go core.MantlePublish(d, C.GoString(endpoint), cb, eb, core.MantleUnmarshal(C.GoString(args)))
}
Esempio n. 2
0
File: main.go Progetto: newgogo/Exis
func (d *Domain) Publish(endpoint string, cb uint64, eb uint64, args string) {
	go core.MantlePublish(d.coreDomain, endpoint, cb, eb, core.MantleUnmarshal(args))
}