Skip to content

Commit

Permalink
Enhance Subscription API to include additional filtering options.
Browse files Browse the repository at this point in the history
  • Loading branch information
lil-sahil committed Jun 16, 2024
1 parent 965bdb7 commit e151c96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ type RetryConfiguration struct {
RetryCount int `json:"retry_count"`
}

type Filter struct {
Body map[string]interface{} `json:"body"`
Headers map[string]interface{} `json:"headers"`
}

type FilterConfiguration struct {
EventTypes []string `json:"event_types" bson:"event_types,omitempty"`
Filter Filter `json:"filter" bson:"filter,omitempty"`
}

type SubscriptionResponse struct {
Expand Down

0 comments on commit e151c96

Please sign in to comment.