catalog

package
v4.7.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: BSD-2-Clause, BSD-2-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// NoType - Used as a wildcard for listeners to listen to all existing types.
	// Think of it as "No type in particular"
	NoType MessageType = 0

	// XxMessage - Type of message sent by the xx messenger.
	XxMessage = 2

	// KeyExchangeTrigger - Trigger a rekey, this message is used locally in
	// client only
	KeyExchangeTrigger = 30
	// KeyExchangeConfirm - Rekey confirmation message. Sent by partner to
	//confirm completion of a rekey
	KeyExchangeConfirm = 31

	// KeyExchangeTriggerEphemeral - Trigger a rekey, this message is used
	//locally in client only. For ephemeral only e2e instances.
	KeyExchangeTriggerEphemeral = 32
	// KeyExchangeConfirmEphemeral - Rekey confirmation message. Sent by partner
	// to confirm completion of a rekey. For ephemeral only e2e instances.
	KeyExchangeConfirmEphemeral = 33

	// E2eClose message is sent when a user deletes a partner and wants to
	// inform their partner that the connection is closed.
	E2eClose MessageType = 34

	// GroupCreationRequest - A group chat request message sent to all members in a group.
	GroupCreationRequest = 40

	// NewFileTransfer is transmitted first on the initialization of a file
	// transfer to inform the receiver about the incoming file.
	NewFileTransfer MessageType = 50

	// EndFileTransfer is sent once all file parts have been transmitted to
	// inform the receiver that the file transfer has ended.
	EndFileTransfer MessageType = 51

	// ConnectionAuthenticationRequest is sent by the recipient
	// of an authenticated connection request
	// (see the connect/ package)
	ConnectionAuthenticationRequest = 60
)
View Source
const (
	Default = sih.Default

	//e2e
	Silent = "silent"
	E2e    = "e2e"

	//auth
	Request      = "request"
	Reset        = "reset"
	Confirm      = "confirm"
	ConfirmReset = "confirmReset"

	RequestEphemeral      = "requestEph"
	ResetEphemeral        = "resetEph"
	ConfirmEphemeral      = "confirmEph"
	ConfirmResetEphemeral = "confirmResetEph"

	Group   = "group"
	EndFT   = "endFT"
	GroupRq = "groupRq"

	RestLike = "restLike"
)
View Source
const MessageTypeLen = 32 / 8

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageType

type MessageType uint32

func (MessageType) String

func (mt MessageType) String() string

Jump to

Keyboard shortcuts

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