mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 04:37:30 +08:00
doc: add comment to Envelope
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:

committed by
Juan Batiz-Benet

parent
e11f099c42
commit
1d715956f5
@ -17,8 +17,11 @@ var log = u.Logger("strategy")
|
|||||||
// LedgerMap lists Ledgers by their Partner key.
|
// LedgerMap lists Ledgers by their Partner key.
|
||||||
type ledgerMap map[u.Key]*ledger
|
type ledgerMap map[u.Key]*ledger
|
||||||
|
|
||||||
|
// Envelope contains a message for a Peer
|
||||||
type Envelope struct {
|
type Envelope struct {
|
||||||
Peer peer.Peer
|
// Peer is the intended recipient
|
||||||
|
Peer peer.Peer
|
||||||
|
// Message is the payload
|
||||||
Message bsmsg.BitSwapMessage
|
Message bsmsg.BitSwapMessage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user