types

package
v0.5.1-mod-1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	UUID          uuid.UUID
	E164          string
	ContactName   string
	ContactAvatar ContactAvatar
	Profile       Profile
}

The Contact struct combines information from two sources: - A Signal "contact": contact info harvested from our user's phone's contact list - A Signal "profile": contact info entered by the target user when registering for Signal Users of this Contact struct should prioritize "contact" information, but fall back to "profile" information if the contact information is not available.

type ContactAvatar

type ContactAvatar struct {
	Image       []byte
	ContentType string
	Hash        string
}

type GroupIdentifier

type GroupIdentifier string

func (GroupIdentifier) Bytes

func (gid GroupIdentifier) Bytes() (raw libsignalgo.GroupIdentifier, err error)

func (GroupIdentifier) String

func (gid GroupIdentifier) String() string

type Profile

type Profile struct {
	Name       string
	About      string
	AboutEmoji string
	AvatarPath string
	Key        libsignalgo.ProfileKey
	FetchedAt  time.Time
}

func (*Profile) Equals

func (p *Profile) Equals(other *Profile) bool

type SerializedGroupMasterKey

type SerializedGroupMasterKey string

This is just base64 encoded group master key

type UUIDKind

type UUIDKind string
const (
	// UUIDKindACI is the UUID kind for account identifiers.
	UUIDKindACI UUIDKind = "aci"
	// UUIDKindPNI is the UUID kind for phone number identifiers.
	UUIDKindPNI UUIDKind = "pni"
)

Jump to

Keyboard shortcuts

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