vyzo
f1be0f1296
don't spawn an extra goroutine for the validator context
2018-01-13 22:14:01 +02:00
vyzo
982c4de960
per subscription validation throttle and more efficient dispatch logic
2018-01-13 14:31:34 +02:00
keks
fe09d1eea3
make validator timeout configurable
2018-01-13 12:13:54 +02:00
keks
02877cda71
complete validator functions
...
- make validators time out after 100ms
- add context param to validator functions
- add type Validator func(context.Context, *Message) bool
- drop message if more than 10 messages are already being validated
2018-01-13 12:13:54 +02:00
keks
647bb98655
optionally allow caller to validate messages
2018-01-13 12:12:21 +02:00
Jan Winkelmann
25b8aad61f
add ctx to sub.Next for cancellation
2016-11-18 02:23:38 +01:00
Jan Winkelmann
822640a482
multiple subscriptions prototype
2016-11-18 02:23:38 +01:00