Documentation ¶
Overview ¶
Package pubsub provides a foundation for implementing pub/sub clients for various message brokers such as google pub-sub, kafka and MQTT. It defines interfaces for publishing and subscribing to messages, managing topics, and handling messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶ added in v1.5.0
type Log struct { Mode string `json:"mode"` CorrelationID string `json:"correlationID"` MessageValue string `json:"messageValue"` Topic string `json:"topic"` Host string `json:"host"` PubSubBackend string `json:"pubSubBackend"` Time int64 `json:"time"` }
func (*Log) PrettyPrint ¶ added in v1.5.0
type Message ¶
type Message struct { Topic string Value []byte MetaData interface{} Committer // contains filtered or unexported fields }
func NewMessage ¶
Directories ¶
Path | Synopsis |
---|---|
eventhub
module
|
|
Package google provides a client for interacting with Google Cloud Pub/Sub.This package facilitates interaction with Google Cloud Pub/Sub, allowing publishing and subscribing to topics, managing subscriptions, and handling messages.
|
Package google provides a client for interacting with Google Cloud Pub/Sub.This package facilitates interaction with Google Cloud Pub/Sub, allowing publishing and subscribing to topics, managing subscriptions, and handling messages. |
Package kafka provides a client for interacting with Apache Kafka message queues.This package facilitates interaction with Apache Kafka, allowing publishing and subscribing to topics, managing consumer groups, and handling messages.
|
Package kafka provides a client for interacting with Apache Kafka message queues.This package facilitates interaction with Apache Kafka, allowing publishing and subscribing to topics, managing consumer groups, and handling messages. |
Package mqtt provides a client for interacting with MQTT message brokers.This package facilitates interaction with MQTT brokers, allowing publishing and subscribing to topics, managing subscriptions, and handling messages.
|
Package mqtt provides a client for interacting with MQTT message brokers.This package facilitates interaction with MQTT brokers, allowing publishing and subscribing to topics, managing subscriptions, and handling messages. |
nats
module
|
Click to show internal directories.
Click to hide internal directories.