Example #1
0
File: main.go Project: newgogo/Exis
// TODO: Move this to the mantle helper
func (d *Domain) Join(cb uint64, eb uint64) {
	if c, err := goRiffle.Open(core.Fabric); err != nil {
		d.coreDomain.GetApp().CallbackSend(eb, err.Error())
	} else {
		if err := d.coreDomain.Join(c); err != nil {
			d.coreDomain.GetApp().CallbackSend(eb, err.Error())
		} else {
			d.coreDomain.GetApp().CallbackSend(cb)
		}
	}
}
Example #2
0
File: main.go Project: newgogo/Exis
//export Join
func Join(pdomain unsafe.Pointer, cb uint64, eb uint64) {
	d := *(*core.Domain)(pdomain)

	if c, err := goRiffle.Open(fabric); err != nil {
		d.GetApp().CallbackSend(eb, err.Error())
	} else {
		if err := d.Join(c); err != nil {
			d.GetApp().CallbackSend(eb, err.Error())
		} else {
			d.GetApp().CallbackSend(cb)
		}
	}
}