mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-29 19:25:56 +00:00
architecting peer
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
package peer
|
||||
|
||||
/* Msg */
|
||||
|
||||
type Msg struct {
|
||||
Bytes ByteSlice
|
||||
Hash ByteSlice
|
||||
}
|
||||
|
||||
|
||||
/* InboundMsg */
|
||||
|
||||
type InboundMsg struct {
|
||||
Peer *Peer
|
||||
Channel *Channel
|
||||
Time Time
|
||||
Msg
|
||||
}
|
||||
|
||||
|
||||
/* NewFilterMsg */
|
||||
|
||||
type NewFilterMsg struct {
|
||||
ChName String
|
||||
Filter Filter
|
||||
}
|
||||
|
||||
func (m *NewFilterMsg) WriteTo(w io.Writer) (int64, error) {
|
||||
return 0, nil // TODO
|
||||
}
|
||||
Reference in New Issue
Block a user