muesli / beehive

A flexible event/agent & automation system with lots of bees 🐝
GNU Affero General Public License v3.0
6.27k stars 320 forks source link

Improve filters interface #340

Closed orsinium closed 3 years ago

orsinium commented 3 years ago

execFilter has the following signature: execFilter(filter string, opts map[string]interface{}).. Values of opts and filter are passed as-is into FilterInterface.Passes.

The PR adjusts FilterInterface to reflect actual types if opts and filter instead of a general interface{}.

muesli commented 3 years ago

Thank you!