Documentation ¶
Index ¶
- func FormatDecryptedPush(decrypted *pushtypes.DecryptedPush, printer *message.Printer) *pushtypes.FormatedPush
- func PushDecrypt(ctx context.Context, rootDir string, input []byte, opts *PushDecryptOpts) (*messengertypes.PushReceivedData, *accounttypes.AccountMetadata, error)
- func PushDecryptStandalone(logger *zap.Logger, rootDir string, inputB64 string, ...) (*pushtypes.DecryptedPush, error)
- func PushEnrich(rawPushData *messengertypes.PushReceivedData, ...) (*pushtypes.DecryptedPush, error)
- type EventHandler
- type MessengerPushReceiver
- type PushDecryptOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDecryptedPush ¶ added in v2.327.0
func FormatDecryptedPush(decrypted *pushtypes.DecryptedPush, printer *message.Printer) *pushtypes.FormatedPush
func PushDecrypt ¶
func PushDecrypt(ctx context.Context, rootDir string, input []byte, opts *PushDecryptOpts) (*messengertypes.PushReceivedData, *accounttypes.AccountMetadata, error)
func PushDecryptStandalone ¶
func PushDecryptStandalone(logger *zap.Logger, rootDir string, inputB64 string, ks accountutils.NativeKeystore) (*pushtypes.DecryptedPush, error)
func PushEnrich ¶
func PushEnrich(rawPushData *messengertypes.PushReceivedData, accountData *accounttypes.AccountMetadata, logger *zap.Logger) (*pushtypes.DecryptedPush, error)
Types ¶
type EventHandler ¶
type EventHandler interface {
HandleOutOfStoreAppMessage(groupPK []byte, message *protocoltypes.OutOfStoreMessage, payload []byte) (*messengertypes.Interaction, bool, error)
}
type MessengerPushReceiver ¶
type MessengerPushReceiver interface {
PushReceive(ctx context.Context, input []byte) (*messengertypes.PushReceive_Reply, error)
}
func NewPushReceiver ¶
func NewPushReceiver(pushHandler weshnet_push.PushHandler, evtHandler EventHandler, db *messengerdb.DBWrapper, logger *zap.Logger) MessengerPushReceiver
type PushDecryptOpts ¶
type PushDecryptOpts struct { Logger *zap.Logger Keystore accountutils.NativeKeystore ExcludedAccounts []string }
Click to show internal directories.
Click to hide internal directories.