22 lines
527 B
Go
22 lines
527 B
Go
|
package store
|
||
|
|
||
|
import (
|
||
|
"go.mau.fi/libsignal/keys/message"
|
||
|
)
|
||
|
|
||
|
// MessageKey store is an interface describing the optional local storage
|
||
|
// of message keys.
|
||
|
type MessageKey interface {
|
||
|
// Load a local message key by id
|
||
|
LoadMessageKey(keyID uint32) *message.Keys
|
||
|
|
||
|
// Store a local message key
|
||
|
StoreMessageKey(keyID uint32, key *message.Keys)
|
||
|
|
||
|
// Check to see if the store contains a message key with id.
|
||
|
ContainsMessageKey(keyID uint32) bool
|
||
|
|
||
|
// Delete a message key from local storage.
|
||
|
RemoveMessageKey(keyID uint32)
|
||
|
}
|