Пример #1
0
func (t *Top) buildUser() {
	ret_rec := func(usr map[string]interface{}) {
		t.uni.Dat["_user"] = usr
	}
	ins := t.uni.NewModule("users").Instance()
	ins.Method("BuildUser").Call(ret_rec, filter.NewSimple(set.New(t.uni.Db, "users"), t.uni.Ev))
}
Пример #2
0
func filterCreator(db *mgo.Database, ev iface.Event, nouns, input map[string]interface{}, c string) iface.Filter {
	return filter.New(set.New(db, c), ev, input)
}