The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woop/p2p/ida/interface.go

25 lines
480 B

package ida
import (
"github.com/simple-rules/harmony-benchmark/p2p"
6 years ago
"time"
)
// Symbol is produced from a RaptorQ implementation.
type Symbol []byte
// Message is type of general message gopssiped
type Message []byte
// RaptorQ interface.
type RaptorQ interface {
Init()
Process(msg Message) chan Symbol
}
// IDA interface.
type IDA interface {
6 years ago
TakeRaptorQ(raptorQImp *RaptorQ)
6 years ago
Process(msg Message, peers []p2p.Peer, done chan struct{}, timeout time.Duration) error
}