Documentation ¶
Index ¶
- func NewMessage() pubsub.Message
- func NewMessageFromDelivery(delivery amqp.Delivery) pubsub.Message
- type Message
- func (m *Message) Ack() error
- func (m *Message) AppID() string
- func (m *Message) Body() []byte
- func (m *Message) ContentEncoding() string
- func (m *Message) ContentType() string
- func (m *Message) CorrelationID() uuid.UUID
- func (m *Message) DeliveryMode() uint8
- func (m *Message) Expiration() time.Duration
- func (m *Message) GetHeader(key string) interface{}
- func (m *Message) Headers() map[string]interface{}
- func (m *Message) ID() uuid.UUID
- func (m *Message) Nack() error
- func (m *Message) Priority() uint8
- func (m *Message) Reject() error
- func (m *Message) ReplyTo() string
- func (m *Message) SetAppID(appID string) pubsub.Message
- func (m *Message) SetBody(body []byte) pubsub.Message
- func (m *Message) SetContentEncoding(v string) pubsub.Message
- func (m *Message) SetContentType(v string) pubsub.Message
- func (m *Message) SetCorrelationID(id uuid.UUID) pubsub.Message
- func (m *Message) SetDeliveryModePersistent() pubsub.Message
- func (m *Message) SetExpiration(expiration time.Duration) pubsub.Message
- func (m *Message) SetHeader(key string, value interface{}) pubsub.Message
- func (m *Message) SetHeaders(headers map[string]interface{}) pubsub.Message
- func (m *Message) SetPriority(priority uint8) pubsub.Message
- func (m *Message) SetReplyTo(v string) pubsub.Message
- func (m *Message) SetTimestamp(timestamp time.Time) pubsub.Message
- func (m *Message) SetType(v string) pubsub.Message
- func (m *Message) SetUserID(useID string) pubsub.Message
- func (m *Message) Timestamp() time.Time
- func (m *Message) Type() string
- func (m *Message) UserID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMessage ¶
func NewMessage() pubsub.Message
func NewMessageFromDelivery ¶ added in v2.1.0
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func (*Message) ContentEncoding ¶
func (*Message) ContentType ¶
func (*Message) CorrelationID ¶
func (*Message) DeliveryMode ¶
func (*Message) Expiration ¶
func (*Message) SetContentEncoding ¶
func (*Message) SetContentType ¶
func (*Message) SetCorrelationID ¶
func (*Message) SetDeliveryModePersistent ¶
func (m *Message) SetDeliveryModePersistent() pubsub.Message
func (*Message) SetExpiration ¶
func (*Message) SetHeaders ¶
func (*Message) SetPriority ¶
func (*Message) SetReplyTo ¶
func (*Message) SetTimestamp ¶
Click to show internal directories.
Click to hide internal directories.