mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-06 09:34:04 +00:00
Add dependencies/vendor (whatsapp)
This commit is contained in:
17
vendor/go.mau.fi/libsignal/state/store/SessionStore.go
vendored
Normal file
17
vendor/go.mau.fi/libsignal/state/store/SessionStore.go
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"go.mau.fi/libsignal/protocol"
|
||||
"go.mau.fi/libsignal/state/record"
|
||||
)
|
||||
|
||||
// Session store is an interface for the persistent storage of session
|
||||
// state information for remote clients.
|
||||
type Session interface {
|
||||
LoadSession(address *protocol.SignalAddress) *record.Session
|
||||
GetSubDeviceSessions(name string) []uint32
|
||||
StoreSession(remoteAddress *protocol.SignalAddress, record *record.Session)
|
||||
ContainsSession(remoteAddress *protocol.SignalAddress) bool
|
||||
DeleteSession(remoteAddress *protocol.SignalAddress)
|
||||
DeleteAllSessions()
|
||||
}
|
Reference in New Issue
Block a user