mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-07 04:22:14 +00:00
36 lines
484 B
Go
36 lines
484 B
Go
package peer
|
|
|
|
import (
|
|
. "github.com/tendermint/tendermint/binary"
|
|
"io"
|
|
)
|
|
|
|
/* 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
|
|
}
|