MCPcopy
hub / github.com/spacecloud-io/space-cloud / PublishString

Method PublishString

runner/modules/pubsub/operations.go:16–19  ·  view source on GitHub ↗

PublishString delivers a message in a fire and forget fashion

(ctx context.Context, topic, value string)

Source from the content-addressed store, hash-verified

14
15// PublishString delivers a message in a fire and forget fashion
16func (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
22func (m *Module) Send(ctx context.Context, topic string, value interface{}) error {

Callers 1

ScaleUpMethod · 0.80

Calls 1

getTopicNameMethod · 0.95

Tested by

no test coverage detected