grav
grav copied to clipboard
Add MsgData interface for easy message creation
Having a MsgData interface would make it easier to create/send messages in one step, for example:
type MsgData interface {
Data() []byte
MsgType() string
}
Could then allow something like:
pod.SendData(structThatImplementsMsgData)