Documentation
¶
Index ¶
- type Message
- type MessageImpl
- func (m *MessageImpl) Deserialize(message []byte) error
- func (m *MessageImpl) GetCommand() string
- func (m *MessageImpl) GetData() []byte
- func (m *MessageImpl) GetError() error
- func (m *MessageImpl) GetOperationID() string
- func (m *MessageImpl) GetStatus() string
- func (m *MessageImpl) Serialize() ([]byte, error)
- func (m *MessageImpl) SetOperationID(operationID string)
- type MessagingSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type MessageImpl ¶ added in v1.0.40
type MessageImpl struct { OperationID string `json:"operationID"` Command string `json:"command"` Status string `json:"status"` Error error `json:"error"` Data []byte `json:"data"` }
MessageImpl implements the Message interface
func (*MessageImpl) Deserialize ¶ added in v1.0.40
func (m *MessageImpl) Deserialize(message []byte) error
Deserializes a byte slice into Message
func (*MessageImpl) GetCommand ¶ added in v1.0.40
func (m *MessageImpl) GetCommand() string
GetCommand returns the command
func (*MessageImpl) GetData ¶ added in v1.0.40
func (m *MessageImpl) GetData() []byte
GetData returns the data
func (*MessageImpl) GetError ¶ added in v1.0.40
func (m *MessageImpl) GetError() error
GetError returns the error
func (*MessageImpl) GetOperationID ¶ added in v1.0.40
func (m *MessageImpl) GetOperationID() string
Get the operation ID
func (*MessageImpl) GetStatus ¶ added in v1.0.40
func (m *MessageImpl) GetStatus() string
GetStatus returns the status
func (*MessageImpl) Serialize ¶ added in v1.0.40
func (m *MessageImpl) Serialize() ([]byte, error)
Serializes a Message into a byte slice
func (*MessageImpl) SetOperationID ¶ added in v1.0.59
func (m *MessageImpl) SetOperationID(operationID string)
Set the operation ID
Click to show internal directories.
Click to hide internal directories.