Documentation ¶
Index ¶
- Variables
- type Config
- type Persistence
- type SQLLitePersistence
- type Service
- func (s *Service) ConfirmMessagesProcessed(ids [][]byte) error
- func (s *Service) CreateDirectMessage(signature string, destination hexutil.Bytes, DH bool, payload []byte) (*whisper.NewMessage, error)
- func (s *Service) CreatePublicMessage(signature string, chatID string, payload []byte, wrap bool) (*whisper.NewMessage, error)
- func (s *Service) DisableInstallation(myIdentityKey *ecdsa.PublicKey, installationID string) error
- func (s *Service) EnableInstallation(myIdentityKey *ecdsa.PublicKey, installationID string) error
- func (s *Service) GetBundle(myIdentityKey *ecdsa.PrivateKey) (*protobuf.Bundle, error)
- func (s *Service) GetPublicBundle(identityKey *ecdsa.PublicKey) (*protobuf.Bundle, error)
- func (s *Service) InitProtocolWithEncyptionKey(address string, encKey string) error
- func (s *Service) InitProtocolWithPassword(address string, password string) error
- func (s *Service) LoadFilter(chat *filter.Chat) ([]*filter.Chat, error)
- func (s *Service) LoadFilters(chats []*filter.Chat) ([]*filter.Chat, error)
- func (s *Service) ProcessMessage(dedupMessage dedup.DeduplicateMessage) error
- func (s *Service) ProcessPublicBundle(myIdentityKey *ecdsa.PrivateKey, bundle *protobuf.Bundle) ([]*multidevice.IdentityAndID, error)
- func (s *Service) RemoveFilters(chats []*filter.Chat) error
- func (s *Service) Start(online func() bool, startTicker bool) error
- func (s *Service) Stop() error
- type SignalHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPFSNotEnabled is returned when an endpoint PFS only is called but // PFS is disabled ErrPFSNotEnabled = errors.New("pfs not enabled") )
Functions ¶
This section is empty.
Types ¶
type SQLLitePersistence ¶
type SQLLitePersistence struct {
// contains filtered or unexported fields
}
func NewSQLLitePersistence ¶
func NewSQLLitePersistence(db *sql.DB) *SQLLitePersistence
func (*SQLLitePersistence) Get ¶
func (s *SQLLitePersistence) Get() (int64, error)
func (*SQLLitePersistence) Set ¶
func (s *SQLLitePersistence) Set(lastPublished int64) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ConfirmMessagesProcessed ¶
func (*Service) CreateDirectMessage ¶
func (s *Service) CreateDirectMessage(signature string, destination hexutil.Bytes, DH bool, payload []byte) (*whisper.NewMessage, error)
CreateDirectMessage creates a 1:1 chat message
func (*Service) CreatePublicMessage ¶
func (s *Service) CreatePublicMessage(signature string, chatID string, payload []byte, wrap bool) (*whisper.NewMessage, error)
CreatePublicMessage sends a public chat message to the underlying transport
func (*Service) DisableInstallation ¶
DisableInstallation disables an installation for multi-device sync.
func (*Service) EnableInstallation ¶
EnableInstallation enables an installation for multi-device sync.
func (*Service) GetPublicBundle ¶
func (*Service) InitProtocolWithEncyptionKey ¶
InitProtocolWithEncyptionKey creates an instance of ProtocolService given an address and encryption key.
func (*Service) InitProtocolWithPassword ¶
InitProtocolWithPassword creates an instance of ProtocolService given an address and password used to generate an encryption key.
func (*Service) LoadFilter ¶
func (*Service) LoadFilters ¶
func (*Service) ProcessMessage ¶
func (s *Service) ProcessMessage(dedupMessage dedup.DeduplicateMessage) error
func (*Service) ProcessPublicBundle ¶
func (s *Service) ProcessPublicBundle(myIdentityKey *ecdsa.PrivateKey, bundle *protobuf.Bundle) ([]*multidevice.IdentityAndID, error)
type SignalHandler ¶
type SignalHandler struct{}
SignalHandler sends signals on protocol events
func (SignalHandler) BundleAdded ¶
func (h SignalHandler) BundleAdded(identity string, installationID string)
func (SignalHandler) DecryptMessageFailed ¶
func (h SignalHandler) DecryptMessageFailed(pubKey string)
func (SignalHandler) WhisperFilterAdded ¶
func (h SignalHandler) WhisperFilterAdded(filters []*signal.Filter)
Click to show internal directories.
Click to hide internal directories.