tests

package
v0.0.0-...-e34fb4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 NewInMemoryPreKey

func NewInMemoryPreKey() *InMemoryPreKey

PreKeyStore

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL