mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
14 lines
300 B
Go
14 lines
300 B
Go
package p2p
|
|
|
|
import (
|
|
"github.com/golang/protobuf/proto"
|
|
)
|
|
|
|
// 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/proto package.
|
|
Data proto.Message
|
|
}
|