Update Message structure: change Payload type to bytes and add Encoding field
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
package domain
|
||||
|
||||
type Encoding string
|
||||
|
||||
const (
|
||||
EncodingJSON Encoding = "json"
|
||||
EncodingProtobuf Encoding = "protobuf"
|
||||
)
|
||||
|
||||
type Message struct {
|
||||
Identifier Identifier
|
||||
Payload any
|
||||
Payload []byte
|
||||
Encoding Encoding
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user