Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClosePublisher ¶
Types ¶
type Publisher ¶
type Publisher interface { io.Closer Publish( data []byte, routingKeys []string, optionFuncs ...func(*rabbitmq.PublishOptions), ) error }
Publisher is just an interface for the library publisher which doesn't have one.
func NewPublisher ¶
NewPublisher creates a publisher and connects to the rabbit under the hood. This method appears to be not testable cause it combines 2 responsibilities: create an instance and connect to a queue. I think we may rely on NewPublisher has been already tested in the library.
Click to show internal directories.
Click to hide internal directories.