mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-05 16:14:02 +00:00
Add dependencies/vendor (whatsapp)
This commit is contained in:
24
vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go
vendored
Normal file
24
vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"go.mau.fi/libsignal/state/record"
|
||||
)
|
||||
|
||||
// SignedPreKey store is an interface that describes how to persistently
|
||||
// store signed PreKeys.
|
||||
type SignedPreKey interface {
|
||||
// LoadSignedPreKey loads a local SignedPreKeyRecord
|
||||
LoadSignedPreKey(signedPreKeyID uint32) *record.SignedPreKey
|
||||
|
||||
// LoadSignedPreKeys loads all local SignedPreKeyRecords
|
||||
LoadSignedPreKeys() []*record.SignedPreKey
|
||||
|
||||
// Store a local SignedPreKeyRecord
|
||||
StoreSignedPreKey(signedPreKeyID uint32, record *record.SignedPreKey)
|
||||
|
||||
// Check to see if store contains the given record
|
||||
ContainsSignedPreKey(signedPreKeyID uint32) bool
|
||||
|
||||
// Delete a SignedPreKeyRecord from local storage
|
||||
RemoveSignedPreKey(signedPreKeyID uint32)
|
||||
}
|
Reference in New Issue
Block a user