mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-30 16:29:33 +01:00
22 lines
506 B
Go
22 lines
506 B
Go
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)
|
|
}
|