PublishString delivers a message in a fire and forget fashion
(ctx context.Context, topic, value string)
| 14 | |
| 15 | // PublishString delivers a message in a fire and forget fashion |
| 16 | func (m *Module) PublishString(ctx context.Context, topic, value string) error { |
| 17 | // Send the message |
| 18 | return m.client.Publish(ctx, m.getTopicName(topic), value).Err() |
| 19 | } |
| 20 | |
| 21 | // Send delivers a message reliably |
| 22 | func (m *Module) Send(ctx context.Context, topic string, value interface{}) error { |