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

26 lines
470 B

package ida
import (
6 years ago
"time"
"github.com/harmony-one/harmony/p2p"
)
// 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
}