Exemple #1
0
//export Call
func Call(pdomain unsafe.Pointer, endpoint *C.char, cb uint64, eb uint64, args *C.char, types *C.char) {
	d := *(*core.Domain)(pdomain)
	go core.MantleCall(d, C.GoString(endpoint), cb, eb, core.MantleUnmarshal(C.GoString(args)), core.MantleUnmarshal(C.GoString(types)))
}
Exemple #2
0
func (d *Domain) Call(endpoint string, cb uint64, eb uint64, args string, types string) {
	go core.MantleCall(d.coreDomain, endpoint, cb, eb, core.MantleUnmarshal(args), core.MantleUnmarshal(types))
}