Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJetStream ¶
NewJetStream initializes jetStream to connect to NATS
Types ¶
type DataFunc ¶
DataFunc determines how the data return from the pubsub is transformed based on implementation per module
type EmitterPubSub ¶ added in v0.5.0
type EmitterPubSub struct {
ServiceURL string
}
EmitterPubSub stores the serviceURL such that the topic and subscription can be reopened
func NewEmitterPubSub ¶ added in v0.5.0
func NewEmitterPubSub(_ context.Context, serviceURL string) *EmitterPubSub
NewEmitterPubSub initializes the blob store based on the url. utilizing gocloud (https://gocloud.dev/howto/pubsub/publish/) various pubsub providers such as sqs, google pubsub, azure service bus, NATS and Kafka can be used. Authentication is setup via environment variables. Please refer to for full documentation https://gocloud.dev/howto/pubsub/
Click to show internal directories.
Click to hide internal directories.