nitishm / vegeta-server

A RESTful API server for vegeta, a load testing tool written in Go.
MIT License
63 stars 17 forks source link

Add a date range filter #65

Closed prytoegrian closed 5 years ago

prytoegrian commented 5 years ago

Cf. #57

Now, for the route /attack, availables filters are :

Based on the example in db:createFilterChain, I simply added new filters. I also refactored testing cases, for improving readability.

My golang is far from perfect, please point me my mistakes if there are any.

I would like to avoid parsing AttackInfo.CreatedAt ; it would be easier if it were time.Time. For a future PR, i'll try to change its type.

Thanks !

prytoegrian commented 5 years ago

Ready to review.