12 lines
240 B
Go
12 lines
240 B
Go
|
package peers
|
||
|
|
||
|
import (
|
||
|
"github.com/vacp2p/mvds/state"
|
||
|
)
|
||
|
|
||
|
type Persistence interface {
|
||
|
Add(state.GroupID, state.PeerID) error
|
||
|
GetByGroupID(group state.GroupID) ([]state.PeerID, error)
|
||
|
Exists(state.GroupID, state.PeerID) (bool, error)
|
||
|
}
|