Documentation ¶
Index ¶
Constants ¶
const Archived = "archived"
const AttrAck = "ack"
AttrAck - conversation attribute for acknowledgement status
const AttrAuthor = "author"
AttrAuthor - conversation attribute for author of the message - referenced by pub key rather than conversation id because of groups.
const AttrDownloaded = "file-downloaded"
AttrDownloaded - conversation attribute for storing downloaded prompts (for file downloads)
const AttrErr = "error"
AttrErr - conversation attribute for errored status
const AttrLastConnectionTime = "last-connection-time"
const AttrRejected = "rejected-invite"
AttrRejected - conversation attribute for storing rejected prompts (for invites)
const AttrSentTimestamp = "sent"
AttrSentTimestamp - conversation attribute for the time the message was (nominally) sent
const BlodeuweddExperiment = "blodeuwedd"
BlodeuweddExperiment enables the Blodeuwedd Assistant
const CustomProfileImageKey = "custom-profile-image"
const Description = "description"
Description is used on server contacts,
const False = "false"
False - false
const FileSharingExperiment = "filesharing"
FileSharingExperiment Allows file sharing
const GroupID = "groupid"
GroupID is the ID of a group
const GroupKey = "groupkey"
GroupKey is the name of the group key attribute...
const GroupPrefix = "torv3"
GroupPrefix precedes a group import statement
const GroupServer = "groupserver"
GroupServer identifies the Server the legacy group is hosted on
const GroupsExperiment = "tapir-groups-experiment"
const ImagePreviewMaxSizeInBytes = 20971520
ImagePreviewMaxSizeInBytes Files up to this size will be autodownloaded using ImagePreviewsExperiment
const ImagePreviewsExperiment = "filesharing-images"
ImagePreviewsExperiment Causes images (up to ImagePreviewMaxSizeInBytes, from accepted contacts) to auto-dl and preview requires FileSharingExperiment to be enabled
const ImportBundlePrefix = "importBundle"
ImportBundlePrefix is an error api constant for import bundle error messages
const InvalidPasswordError = "invalid_password_error"
InvalidPasswordError is returned when an incorrect password is provided to a function that requires the current active password
const MessageFormattingExperiment = "message-formatting"
const Name = "name"
Name refers to a Profile Name
const Onion = "onion"
Onion refers the Onion address of the profile
const PasswordsDoNotMatchError = "passwords_do_not_match"
PasswordsDoNotMatchError is returned when two passwords do not match
const PeerAppearOffline = "appear-offline"
const PeerAutostart = "autostart"
const ProfileAttribute1 = "profile-attribute-1"
const ProfileAttribute2 = "profile-attribute-2"
const ProfileAttribute3 = "profile-attribute-3"
const ProfileStatus = "profile-status"
const ProfileTypeV1DefaultPassword = "v1-defaultPassword"
ProfileTypeV1DefaultPassword is a tag describing a profile protected with the default password.
const ProfileTypeV1Password = "v1-userPassword"
ProfileTypeV1Password is a tag describing a profile encrypted derived from a user-provided password.
const ServerPrefix = "server:"
ServerPrefix precedes a server import statement
const SyncMostRecentMessageTime = "SyncMostRecentMessageTime"
const SyncPreLastMessageTime = "SyncPreLastMessageTime"
const Tag = "tag"
Tag describes the type of a profile e.g. default password / encrypted etc.
const TofuBundlePrefix = "tofubundle:"
TofuBundlePrefix precedes a server and a group import statement
const True = "true"
True - true
Variables ¶
var AutoDLFileExts = [...]string{".jpg", ".jpeg", ".png", ".gif", ".webp", ".bmp"}
AutoDLFileExts Files with these extensions will be autodownloaded using ImagePreviewsExperiment
Functions ¶
This section is empty.
Types ¶
This section is empty.