mirror of
https://github.com/vacp2p/dasy.git
synced 2026-01-08 22:37:59 -05:00
* started working on payload concept * added crypto * moved into new package, added feed * added nicer feed stuff * minor readme for now * subscribe implemented badly * doc * doc block * cleaned up a little * making a mutex * mock, empty test * test wrapper * started playing around * updated mock * formatted * updated * updated interface * updated * updated * updated mock, rewrote test stuff * todos * added tests * reuse * dont need var
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
|
|
}
|