Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSubPublisher ¶
type PubSubPublisher struct {
// contains filtered or unexported fields
}
PubSubPublisher represents GCP PubSub publisher
func NewPubSubPublisher ¶
func NewPubSubPublisher(ctx context.Context, projectID, topicName string) (p *PubSubPublisher, err error)
NewPubSubPublisher creates a configured version of the GCP PubSub publisher
func (*PubSubPublisher) Publish ¶
func (p *PubSubPublisher) Publish(ctx context.Context, key []byte, content *msg.SimpleMessage) error
Publish publishes messages to GCP PubSub
Click to show internal directories.
Click to hide internal directories.