prysm-pulse/sharding/p2p/message.go
Preston Van Loon c17db32069 Better documentation, add p2p message container type
Former-commit-id: 2790cf05b6dbae32cc8ced818e0af70bb20f8582 [formerly 782d2cbb05d9fe391f867d33c9ae0820b3fda203]
Former-commit-id: 78a21d732a68267fae930858f9e09b26ea9419b8
2018-06-12 22:06:59 -04:00

10 lines
253 B
Go

package p2p
// Message represents a message received from an external peer.
type Message struct {
// Peer represents the sender of the message.
Peer Peer
// Data can be any type of message found in sharding/p2p/messages package.
Data interface{}
}