mirror of
https://github.com/vacp2p/mvds.git
synced 2026-01-09 12:07:55 -05:00
This commits changes the behavior so that we don't rely on the presence of GroupID in the payload. Adds some tests to verify the basic functionalities of BATCH and INTERACTIVE mode, but more are required to ensure the correct functioning. Error handling and state management is probably also to be inspected more carefully.
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
|
|
}
|