Add extra options to be used by others that need them

This commit is contained in:
Asim
2015-12-31 18:14:40 +00:00
parent 64b45f7846
commit 191e835aa9
5 changed files with 26 additions and 5 deletions

View File

@@ -6,7 +6,10 @@ type Options struct {
Options map[string]string
}
type PublishOptions struct{}
type PublishOptions struct {
// Other options to be used by broker implementations
Options map[string]string
}
type SubscribeOptions struct {
// AutoAck defaults to true. When a handler returns
@@ -16,6 +19,9 @@ type SubscribeOptions struct {
// will create a shared subscription where each
// receives a subset of messages.
Queue string
// Other options to be used by broker implementations
Options map[string]string
}
type Option func(*Options)