mirror of https://github.com/vacp2p/dasy.git
13 lines
303 B
Go
13 lines
303 B
Go
package internal
|
|
|
|
import (
|
|
"github.com/vacp2p/mvds/protobuf"
|
|
"github.com/vacp2p/mvds/state"
|
|
)
|
|
|
|
type DataSyncNode interface {
|
|
AppendMessage(groupID state.GroupID, data []byte) (state.MessageID, error)
|
|
Subscribe() chan protobuf.Message
|
|
RequestMessage(group state.GroupID, id state.MessageID) error
|
|
}
|