Skip to content

Commit

Permalink
updates regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhang Balkundi committed Mar 28, 2024
1 parent 0423ccf commit 65b9038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ ex: mobile_app_log_consumer/mobile-application-logs/1
```go
router := ziggurat.NewRouter()
// to execute logic for iOS logs I would use this
router.HandlerFunc("mobile_app_log_consumer/mobile-application-logs/(1|3|5|7|9|11)", func (ctx, *ziggurat.Event) {....})
router.HandlerFunc("mobile_app_log_consumer/mobile-application-logs/(1|3|5|7|9|11)$", func (ctx, *ziggurat.Event) {....})
// to execute logic for Android logs I would use this
router.HandlerFunc("mobile_app_log_consumer/mobile-application-logs/(2|4|6|8|10|12)", func (ctx, *ziggurat.Event) {....})
router.HandlerFunc("mobile_app_log_consumer/mobile-application-logs/(2|4|6|8|10|12)$", func (ctx, *ziggurat.Event) {....})
```

Based on how the routing path is set by the message consumer implementation, you can define your routing paths.
Expand Down

0 comments on commit 65b9038

Please sign in to comment.