mirror of
https://github.com/vacp2p/mvds.git
synced 2026-01-09 14:47:59 -05:00
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)
|
|
}
|