9 lines
313 B
Go
9 lines
313 B
Go
package model
|
|
|
|
// PeerMessage is an encapsulation that can be used by higher level applications
|
|
type PeerMessage struct {
|
|
ID string // A unique Message ID (primarily used for acknowledgments)
|
|
Context string // A unique context identifier i.e. im.cwtch.chat
|
|
Data []byte // The serialized data packet.
|
|
}
|