mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-05 11:44:04 +00:00
Add dependencies/vendor (whatsapp)
This commit is contained in:
21
vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go
vendored
Normal file
21
vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"go.mau.fi/libsignal/state/record"
|
||||
)
|
||||
|
||||
// PreKey store is an interface describing the local storage
|
||||
// of PreKeyRecords
|
||||
type PreKey interface {
|
||||
// Load a local PreKeyRecord
|
||||
LoadPreKey(preKeyID uint32) *record.PreKey
|
||||
|
||||
// Store a local PreKeyRecord
|
||||
StorePreKey(preKeyID uint32, preKeyRecord *record.PreKey)
|
||||
|
||||
// Check to see if the store contains a PreKeyRecord
|
||||
ContainsPreKey(preKeyID uint32) bool
|
||||
|
||||
// Delete a PreKeyRecord from local storage.
|
||||
RemovePreKey(preKeyID uint32)
|
||||
}
|
Reference in New Issue
Block a user