mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
9de77b21b2
Adds support for datasync, V1Messages and disabling the discovery topic. This is a backward compatible change as long as they are not toggled on (they are not by default).
14 lines
318 B
Go
14 lines
318 B
Go
// Package store contains everything storage related for MVDS.
|
|
package store
|
|
|
|
import (
|
|
"github.com/vacp2p/mvds/protobuf"
|
|
"github.com/vacp2p/mvds/state"
|
|
)
|
|
|
|
type MessageStore interface {
|
|
Has(id state.MessageID) (bool, error)
|
|
Get(id state.MessageID) (*protobuf.Message, error)
|
|
Add(message *protobuf.Message) error
|
|
}
|