mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-11 06:39:08 -07:00
store: ClientStore now using chihaya.PeerID
This commit is contained in:
committed by
Jimmy Zelinskie
parent
7be6dcaaa3
commit
a64e655376
@@ -4,14 +4,17 @@
|
||||
|
||||
package store
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/chihaya/chihaya"
|
||||
)
|
||||
|
||||
var clientStoreDrivers = make(map[string]ClientStoreDriver)
|
||||
|
||||
// ClientStore represents an interface for manipulating clientIDs.
|
||||
type ClientStore interface {
|
||||
CreateClient(clientID string) error
|
||||
FindClient(peerID string) (bool, error)
|
||||
FindClient(peerID chihaya.PeerID) (bool, error)
|
||||
DeleteClient(clientID string) error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user