MCPcopy Create free account
hub / github.com/assembla/cony / PublishingTemplate

Function PublishingTemplate

publisher.go:135–139  ·  view source on GitHub ↗

PublishingTemplate Publisher's functional option. Provide template amqp.Publishing and save typing.

(t amqp.Publishing)

Source from the content-addressed store, hash-verified

133// PublishingTemplate Publisher's functional option. Provide template
134// amqp.Publishing and save typing.
135func PublishingTemplate(t amqp.Publishing) PublisherOpt {
136 return func(p *Publisher) {
137 p.tmpl = t
138 }
139}

Callers 3

TestPublisher_PublishFunction · 0.85
TestPublisher_WriteFunction · 0.85
TestPublishingTemplateFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestPublisher_PublishFunction · 0.68
TestPublisher_WriteFunction · 0.68
TestPublishingTemplateFunction · 0.68