Example #1
0
File: top.go Project: Laller/chill
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))
}
Example #2
0
File: top.go Project: Laller/chill
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)
}