Documentation ¶
Index ¶
- type InMemoryIdentityKey
- func (i *InMemoryIdentityKey) GetIdentityKeyPair() *identity.KeyPair
- func (i *InMemoryIdentityKey) GetLocalRegistrationId() uint32
- func (i *InMemoryIdentityKey) IsTrustedIdentity(address *protocol.SignalAddress, identityKey *identity.Key) bool
- func (i *InMemoryIdentityKey) SaveIdentity(address *protocol.SignalAddress, identityKey *identity.Key)
- type InMemoryPreKey
- type InMemorySenderKey
- type InMemorySession
- func (i *InMemorySession) ContainsSession(remoteAddress *protocol.SignalAddress) bool
- func (i *InMemorySession) DeleteAllSessions()
- func (i *InMemorySession) DeleteSession(remoteAddress *protocol.SignalAddress)
- func (i *InMemorySession) GetSubDeviceSessions(name string) []uint32
- func (i *InMemorySession) LoadSession(address *protocol.SignalAddress) *record.Session
- func (i *InMemorySession) StoreSession(remoteAddress *protocol.SignalAddress, record *record.Session)
- type InMemorySignedPreKey
- func (i *InMemorySignedPreKey) ContainsSignedPreKey(signedPreKeyID uint32) bool
- func (i *InMemorySignedPreKey) LoadSignedPreKey(signedPreKeyID uint32) *record.SignedPreKey
- func (i *InMemorySignedPreKey) LoadSignedPreKeys() []*record.SignedPreKey
- func (i *InMemorySignedPreKey) RemoveSignedPreKey(signedPreKeyID uint32)
- func (i *InMemorySignedPreKey) StoreSignedPreKey(signedPreKeyID uint32, record *record.SignedPreKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryIdentityKey ¶
type InMemoryIdentityKey struct {
// contains filtered or unexported fields
}
func NewInMemoryIdentityKey ¶
func NewInMemoryIdentityKey(identityKey *identity.KeyPair, localRegistrationID uint32) *InMemoryIdentityKey
IdentityKeyStore
func (*InMemoryIdentityKey) GetIdentityKeyPair ¶
func (i *InMemoryIdentityKey) GetIdentityKeyPair() *identity.KeyPair
func (*InMemoryIdentityKey) GetLocalRegistrationId ¶
func (i *InMemoryIdentityKey) GetLocalRegistrationId() uint32
func (*InMemoryIdentityKey) IsTrustedIdentity ¶
func (i *InMemoryIdentityKey) IsTrustedIdentity(address *protocol.SignalAddress, identityKey *identity.Key) bool
func (*InMemoryIdentityKey) SaveIdentity ¶
func (i *InMemoryIdentityKey) SaveIdentity(address *protocol.SignalAddress, identityKey *identity.Key)
type InMemoryPreKey ¶
type InMemoryPreKey struct {
// contains filtered or unexported fields
}
func (*InMemoryPreKey) ContainsPreKey ¶
func (i *InMemoryPreKey) ContainsPreKey(preKeyID uint32) bool
func (*InMemoryPreKey) LoadPreKey ¶
func (i *InMemoryPreKey) LoadPreKey(preKeyID uint32) *record.PreKey
func (*InMemoryPreKey) RemovePreKey ¶
func (i *InMemoryPreKey) RemovePreKey(preKeyID uint32)
func (*InMemoryPreKey) StorePreKey ¶
func (i *InMemoryPreKey) StorePreKey(preKeyID uint32, preKeyRecord *record.PreKey)
type InMemorySenderKey ¶
type InMemorySenderKey struct {
// contains filtered or unexported fields
}
func NewInMemorySenderKey ¶
func NewInMemorySenderKey() *InMemorySenderKey
func (*InMemorySenderKey) LoadSenderKey ¶
func (i *InMemorySenderKey) LoadSenderKey(senderKeyName *protocol.SenderKeyName) *groupRecord.SenderKey
func (*InMemorySenderKey) StoreSenderKey ¶
func (i *InMemorySenderKey) StoreSenderKey(senderKeyName *protocol.SenderKeyName, keyRecord *groupRecord.SenderKey)
type InMemorySession ¶
type InMemorySession struct {
// contains filtered or unexported fields
}
func NewInMemorySession ¶
func NewInMemorySession(serializer *serialize.Serializer) *InMemorySession
SessionStore
func (*InMemorySession) ContainsSession ¶
func (i *InMemorySession) ContainsSession(remoteAddress *protocol.SignalAddress) bool
func (*InMemorySession) DeleteAllSessions ¶
func (i *InMemorySession) DeleteAllSessions()
func (*InMemorySession) DeleteSession ¶
func (i *InMemorySession) DeleteSession(remoteAddress *protocol.SignalAddress)
func (*InMemorySession) GetSubDeviceSessions ¶
func (i *InMemorySession) GetSubDeviceSessions(name string) []uint32
func (*InMemorySession) LoadSession ¶
func (i *InMemorySession) LoadSession(address *protocol.SignalAddress) *record.Session
func (*InMemorySession) StoreSession ¶
func (i *InMemorySession) StoreSession(remoteAddress *protocol.SignalAddress, record *record.Session)
type InMemorySignedPreKey ¶
type InMemorySignedPreKey struct {
// contains filtered or unexported fields
}
func NewInMemorySignedPreKey ¶
func NewInMemorySignedPreKey() *InMemorySignedPreKey
SignedPreKeyStore
func (*InMemorySignedPreKey) ContainsSignedPreKey ¶
func (i *InMemorySignedPreKey) ContainsSignedPreKey(signedPreKeyID uint32) bool
func (*InMemorySignedPreKey) LoadSignedPreKey ¶
func (i *InMemorySignedPreKey) LoadSignedPreKey(signedPreKeyID uint32) *record.SignedPreKey
func (*InMemorySignedPreKey) LoadSignedPreKeys ¶
func (i *InMemorySignedPreKey) LoadSignedPreKeys() []*record.SignedPreKey
func (*InMemorySignedPreKey) RemoveSignedPreKey ¶
func (i *InMemorySignedPreKey) RemoveSignedPreKey(signedPreKeyID uint32)
func (*InMemorySignedPreKey) StoreSignedPreKey ¶
func (i *InMemorySignedPreKey) StoreSignedPreKey(signedPreKeyID uint32, record *record.SignedPreKey)
Click to show internal directories.
Click to hide internal directories.