mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +00:00
17 lines
399 B
Go
17 lines
399 B
Go
package p2p
|
|
|
|
import (
|
|
"github.com/cosmos/gogoproto/proto"
|
|
"github.com/tendermint/tendermint/p2p/conn"
|
|
)
|
|
|
|
type ChannelDescriptor = conn.ChannelDescriptor
|
|
type ConnectionStatus = conn.ConnectionStatus
|
|
|
|
// Envelope contains a message with sender routing info.
|
|
type Envelope struct {
|
|
Src Peer // sender (empty if outbound)
|
|
Message proto.Message // message payload
|
|
ChannelID byte
|
|
}
|