mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-08 15:53:07 +00:00
22 lines
323 B
Go
22 lines
323 B
Go
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
|
|
}
|
|
|
|
func (mc *MessageCache) Get(mid string) (*pb.Message, bool) {
|
|
// TODO
|
|
return nil, false
|
|
}
|