signalid

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDMPortalID

func MakeDMPortalID(serviceID libsignalgo.ServiceID) networkid.PortalID

func MakeGroupPortalID

func MakeGroupPortalID(groupID types.GroupIdentifier) networkid.PortalID

func MakeMessageID

func MakeMessageID(sender uuid.UUID, timestamp uint64) networkid.MessageID

func MakeMessagePartID

func MakeMessagePartID(index int) networkid.PartID

func MakeUserID

func MakeUserID(user uuid.UUID) networkid.UserID

func MakeUserIDFromServiceID

func MakeUserIDFromServiceID(user libsignalgo.ServiceID) networkid.UserID

func MakeUserLoginID

func MakeUserLoginID(user uuid.UUID) networkid.UserLoginID

func ParseGhostOrUserLoginID added in v0.7.1

func ParseGhostOrUserLoginID(ghostOrUserLogin bridgev2.GhostOrUserLogin) (uuid.UUID, error)

func ParseMessageID

func ParseMessageID(messageID networkid.MessageID) (sender uuid.UUID, timestamp uint64, err error)

func ParsePortalID

func ParsePortalID(portalID networkid.PortalID) (userID libsignalgo.ServiceID, groupID types.GroupIdentifier, err error)

func ParseUserID

func ParseUserID(userID networkid.UserID) (uuid.UUID, error)

func ParseUserIDAsServiceID

func ParseUserIDAsServiceID(userID networkid.UserID) (libsignalgo.ServiceID, error)

func ParseUserLoginID

func ParseUserLoginID(userLoginID networkid.UserLoginID) (uuid.UUID, error)

Types

type GhostMetadata added in v0.7.1

type GhostMetadata struct {
	ProfileFetchedAt jsontime.UnixMilli `json:"profile_fetched_at"`
}

type MessageMetadata

type MessageMetadata struct {
	ContainsAttachments bool `json:"contains_attachments,omitempty"`
}

type PortalMetadata

type PortalMetadata struct {
	Revision               uint32 `json:"revision,omitempty"`
	ExpirationTimerVersion uint32 `json:"expiration_timer_version,omitempty"`
}

Jump to

Keyboard shortcuts

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