Documentation ¶
Index ¶
- type Config
- type ContactStore
- type GroupStore
- type IdentityStore
- func (s IdentityStore) GetIdentityKeyPair() (*axolotl.IdentityKeyPair, error)
- func (s IdentityStore) GetLocalRegistrationID() (uint32, error)
- func (s IdentityStore) IsTrustedIdentity(id string, key *axolotl.IdentityKey) bool
- func (s IdentityStore) SaveIdentity(id string, key *axolotl.IdentityKey) error
- func (s IdentityStore) SetIdentityKeyPair(ikp *axolotl.IdentityKeyPair) error
- func (s IdentityStore) SetLocalRegistrationID(id uint32) error
- type KeyValue
- type PreKeyStore
- type SessionStore
- func (s *SessionStore) ContainsSession(recipientID string, deviceID uint32) bool
- func (s *SessionStore) DeleteAllSessions(recipientID string)
- func (s *SessionStore) DeleteSession(recipientID string, deviceID uint32)
- func (s *SessionStore) GetSubDeviceSessions(recipientID string) []uint32
- func (s *SessionStore) LoadSession(recipientID string, deviceID uint32) (*axolotl.SessionRecord, error)
- func (s *SessionStore) StoreSession(recipientID string, deviceID uint32, record *axolotl.SessionRecord) error
- type SignedPreKeyStore
- func (s SignedPreKeyStore) ContainsSignedPreKey(id uint32) bool
- func (s SignedPreKeyStore) LoadSignedPreKey(id uint32) (*axolotl.SignedPreKeyRecord, error)
- func (s SignedPreKeyStore) RemoveSignedPreKey(id uint32)
- func (s SignedPreKeyStore) StoreSignedPreKey(id uint32, record *axolotl.SignedPreKeyRecord) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (Config) GetHTTPPassword ¶
func (Config) GetHTTPSignalingKey ¶
func (Config) SetHTTPPassword ¶
func (Config) SetHTTPSignalingKey ¶
type ContactStore ¶
type ContactStore struct {
// contains filtered or unexported fields
}
func NewContactStore ¶
func NewContactStore(db *sql.DB) *ContactStore
func (ContactStore) Get ¶
func (s ContactStore) Get(tel string) (*libsignal.Contact, error)
func (ContactStore) Save ¶
func (s ContactStore) Save(ct *libsignal.Contact) error
type GroupStore ¶
type GroupStore struct {
// contains filtered or unexported fields
}
func NewGroupStore ¶
func NewGroupStore(db *sql.DB) *GroupStore
func (GroupStore) Get ¶
func (s GroupStore) Get(hexid string) (*libsignal.Group, error)
func (GroupStore) GetAll ¶
func (s GroupStore) GetAll() ([]*libsignal.Group, error)
func (GroupStore) Save ¶
func (s GroupStore) Save(gr *libsignal.Group) error
type IdentityStore ¶
type IdentityStore struct {
// contains filtered or unexported fields
}
func NewIdentityStore ¶
func NewIdentityStore(db *sql.DB) *IdentityStore
func (IdentityStore) GetIdentityKeyPair ¶
func (s IdentityStore) GetIdentityKeyPair() (*axolotl.IdentityKeyPair, error)
func (IdentityStore) GetLocalRegistrationID ¶
func (s IdentityStore) GetLocalRegistrationID() (uint32, error)
func (IdentityStore) IsTrustedIdentity ¶
func (s IdentityStore) IsTrustedIdentity(id string, key *axolotl.IdentityKey) bool
func (IdentityStore) SaveIdentity ¶
func (s IdentityStore) SaveIdentity(id string, key *axolotl.IdentityKey) error
func (IdentityStore) SetIdentityKeyPair ¶
func (s IdentityStore) SetIdentityKeyPair(ikp *axolotl.IdentityKeyPair) error
func (IdentityStore) SetLocalRegistrationID ¶
func (s IdentityStore) SetLocalRegistrationID(id uint32) error
type PreKeyStore ¶
type PreKeyStore struct {
// contains filtered or unexported fields
}
func NewPreKeyStore ¶
func NewPreKeyStore(db *sql.DB) *PreKeyStore
func (PreKeyStore) ContainsPreKey ¶
func (s PreKeyStore) ContainsPreKey(id uint32) bool
func (PreKeyStore) LoadPreKey ¶
func (s PreKeyStore) LoadPreKey(id uint32) (*axolotl.PreKeyRecord, error)
func (PreKeyStore) RemovePreKey ¶
func (s PreKeyStore) RemovePreKey(id uint32)
func (PreKeyStore) StorePreKey ¶
func (s PreKeyStore) StorePreKey(id uint32, record *axolotl.PreKeyRecord) error
type SessionStore ¶
func NewSessionStore ¶
func NewSessionStore(db *sql.DB) *SessionStore
func (*SessionStore) ContainsSession ¶
func (s *SessionStore) ContainsSession(recipientID string, deviceID uint32) bool
func (*SessionStore) DeleteAllSessions ¶
func (s *SessionStore) DeleteAllSessions(recipientID string)
func (*SessionStore) DeleteSession ¶
func (s *SessionStore) DeleteSession(recipientID string, deviceID uint32)
func (*SessionStore) GetSubDeviceSessions ¶
func (s *SessionStore) GetSubDeviceSessions(recipientID string) []uint32
func (*SessionStore) LoadSession ¶
func (s *SessionStore) LoadSession(recipientID string, deviceID uint32) (*axolotl.SessionRecord, error)
func (*SessionStore) StoreSession ¶
func (s *SessionStore) StoreSession(recipientID string, deviceID uint32, record *axolotl.SessionRecord) error
type SignedPreKeyStore ¶
type SignedPreKeyStore struct {
// contains filtered or unexported fields
}
func NewSignedPreKeyStore ¶
func NewSignedPreKeyStore(db *sql.DB) *SignedPreKeyStore
func (SignedPreKeyStore) ContainsSignedPreKey ¶
func (s SignedPreKeyStore) ContainsSignedPreKey(id uint32) bool
func (SignedPreKeyStore) LoadSignedPreKey ¶
func (s SignedPreKeyStore) LoadSignedPreKey(id uint32) (*axolotl.SignedPreKeyRecord, error)
func (SignedPreKeyStore) RemoveSignedPreKey ¶
func (s SignedPreKeyStore) RemoveSignedPreKey(id uint32)
func (SignedPreKeyStore) StoreSignedPreKey ¶
func (s SignedPreKeyStore) StoreSignedPreKey(id uint32, record *axolotl.SignedPreKeyRecord) error
Click to show internal directories.
Click to hide internal directories.