2018-02-19 14:13:18 +00:00
|
|
|
package floodsub
|
|
|
|
|
|
|
|
import (
|
|
|
|
pb "github.com/libp2p/go-floodsub/pb"
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewMessageCache(win int) *MessageCache {
|
|
|
|
return &MessageCache{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type MessageCache struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (mc *MessageCache) Add(msg *pb.Message) {
|
|
|
|
// TODO
|
|
|
|
}
|
2018-02-19 16:45:10 +00:00
|
|
|
|
|
|
|
func (mc *MessageCache) Get(mid string) (*pb.Message, bool) {
|
|
|
|
// TODO
|
|
|
|
return nil, false
|
|
|
|
}
|