Ejemplo n.º 1
0
Archivo: main.go Proyecto: newgogo/Exis
//export Register
func Register(pdomain unsafe.Pointer, endpoint *C.char, cb uint64, eb uint64, hn uint64, types *C.char) {
	d := *(*core.Domain)(pdomain)
	go core.MantleRegister(d, C.GoString(endpoint), cb, eb, hn, core.MantleUnmarshal(C.GoString(types)))
}
Ejemplo n.º 2
0
Archivo: main.go Proyecto: newgogo/Exis
func (d *Domain) Register(endpoint string, cb uint64, eb uint64, fn uint64, types string) {
	go core.MantleRegister(d.coreDomain, endpoint, cb, eb, fn, core.MantleUnmarshal(types))
}