Skip to content

Commit

Permalink
Merge pull request #68 from mailersend/feature/issue-65/inbound-domai…
Browse files Browse the repository at this point in the history
…n-priority

chore: add InboundPriority
  • Loading branch information
robgordon89 authored Jun 16, 2023
2 parents bf2ed21 + 8e823d7 commit 299fff2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ func main() {
MatchFilter: &mailersend.MatchFilter{
Type: "match_all",
},
InboundPriority: 1,
CatchFilter: &mailersend.CatchFilter{},
Forwards: []mailersend.Forwards{
{
Expand Down Expand Up @@ -1030,6 +1031,7 @@ func main() {
Name: "Example Route",
DomainEnabled: *mailersend.Bool(true),
InboundDomain: "inbound.example.com",
InboundPriority: 1,
MatchFilter: &mailersend.MatchFilter{
Type: "match_all",
},
Expand Down
2 changes: 2 additions & 0 deletions inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type inbound struct {
Address string `json:"address"`
Domain string `json:"domain"`
DNSCheckedAt interface{} `json:"dns_checked_at"`
Priority int `json:"priority"`
Enabled bool `json:"enabled"`
Filters []filters `json:"filters"`
Forwards []forwards `json:"forwards"`
Expand Down Expand Up @@ -68,6 +69,7 @@ type CreateInboundOptions struct {
InboundDomain string `json:"inbound_domain,omitempty"`
InboundAddress string `json:"inbound_address,omitempty"`
InboundSubdomain string `json:"inbound_subdomain,omitempty"`
InboundPriority int `json:"inbound_priority,omitempty"`
MatchFilter *MatchFilter `json:"match_filter,omitempty"`
CatchFilter *CatchFilter `json:"catch_filter,omitempty"`
Forwards []Forwards `json:"forwards"`
Expand Down

0 comments on commit 299fff2

Please sign in to comment.