Documentation
¶
Index ¶
Constants ¶
View Source
const ( CloudEventsHeaderType = "ce_type" CloudEventsHeaderTime = "ce_time" CloudEventsHeaderSource = "ce_source" CloudEventsHeaderSubject = "ce_subject" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudEventMarshaler ¶
func NewCloudEventMarshaler ¶
func NewCloudEventMarshaler(transform TransformFunc) CloudEventMarshaler
type Publisher ¶
type Publisher interface {
ForTopic(topic string) TopicPublisher
}
func NewPublisher ¶
func NewPublisher(opts PublisherOptions) (Publisher, error)
type PublisherOptions ¶
type PublisherOptions struct { // Publisher is the underlying watermill publisher object Publisher message.Publisher // Transform is a function that can be used to transform the message before it is published, mainly used // for driver specific tweaks. If more are required, we should add a chain function. Transform TransformFunc }
type TopicPublisher ¶
func NewMockTopicPublisher ¶
func NewMockTopicPublisher(t *testing.T) TopicPublisher
Click to show internal directories.
Click to hide internal directories.