mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-07-06 18:59:44 +00:00
18 lines
475 B
Go
18 lines
475 B
Go
|
|
package messaging
|
||
|
|
|
||
|
|
// ContentTopic is an application-level message category, e.g.
|
||
|
|
// "/my-app/1/chat/proto".
|
||
|
|
type ContentTopic = string
|
||
|
|
|
||
|
|
// RequestID correlates a Send call with its later MessageSentEvent /
|
||
|
|
// MessagePropagatedEvent / MessageErrorEvent.
|
||
|
|
type RequestID string
|
||
|
|
|
||
|
|
// Envelope is an outgoing Messaging API message.
|
||
|
|
type Envelope struct {
|
||
|
|
ContentTopic ContentTopic
|
||
|
|
Payload []byte
|
||
|
|
// Ephemeral marks the message as transient (not stored).
|
||
|
|
Ephemeral bool
|
||
|
|
}
|