Skip to content

Commit

Permalink
add json struct-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjarosch committed Jun 27, 2019
1 parent 4dd1ccb commit b482cc6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkg/amqp/subscribe.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package amqp

import (
"github.com/streadway/amqp"
"strings"
"fmt"
"strings"

"github.com/google/uuid"
"github.com/streadway/amqp"
)

type SubscriberHandler func(delivery amqp.Delivery)
Expand All @@ -21,11 +22,11 @@ type Subscription struct {

// SubscriptionQueue configures the queue on which the subscription runs.
type SubscriptionQueue struct {
Name string
Durable bool
AutoDelete bool
Exclusive bool
NoWait bool
Name string `json:"name"`
Durable bool `json:"durable"`
AutoDelete bool `json:"auto_delete"`
Exclusive bool `json:"exclusive"`
NoWait bool `json:"no_wait"`
}

type handler struct {
Expand Down

0 comments on commit b482cc6

Please sign in to comment.