Documentation
¶
Index ¶
- Variables
- func GroupUpdateMsg(tels []string, title string) string
- func ReadQr(img image.Image)
- func RunBackend(errorChannel chan error) error
- type GroupRecord
- type TextsecureAPI
- func (Api *TextsecureAPI) AddContact(name, phone, uuid string)
- func (Api *TextsecureAPI) AddDevice() error
- func (Api *TextsecureAPI) ContactsImported(path string)
- func (Api *TextsecureAPI) DeleteMessage(msg *store.Message)
- func (Api *TextsecureAPI) DeleteSession(ID int64) error
- func (Api *TextsecureAPI) EndSession(ID int64) error
- func (Api *TextsecureAPI) GetActiveSessionID() int64
- func (Api *TextsecureAPI) GetAvatarImage(id string) string
- func (Api *TextsecureAPI) GroupInfo(hexid string) string
- func (Api *TextsecureAPI) IdentityInfo(id string) string
- func (Api *TextsecureAPI) LeaveChat()
- func (Api *TextsecureAPI) MarkSessionRead(ID int64) error
- func (Api *TextsecureAPI) RefreshDevices() error
- func (Api *TextsecureAPI) SaveSettings() error
- func (Api *TextsecureAPI) SendAttachmentToApi(to int64, message string, file string) error
- func (Api *TextsecureAPI) SendContactAttachment(to int64, message string, file string) error
- func (Api *TextsecureAPI) SendMessage(to int64, message string) error
- func (Api *TextsecureAPI) SetActiveSessionID(ID int64)
- func (Api *TextsecureAPI) StartAfterDecryption()
- func (Api *TextsecureAPI) UnlinkDevice(id int) error
- func (Api *TextsecureAPI) Unregister()
Constants ¶
This section is empty.
Variables ¶
View Source
var Api = &TextsecureAPI{}
Functions ¶
func GroupUpdateMsg ¶
func RunBackend ¶
Types ¶
type GroupRecord ¶
type TextsecureAPI ¶
type TextsecureAPI struct { HasContacts bool PushToken string ActiveSessionID string PhoneNumber string UUID string }
func (*TextsecureAPI) AddContact ¶
func (Api *TextsecureAPI) AddContact(name, phone, uuid string)
func (*TextsecureAPI) AddDevice ¶
func (Api *TextsecureAPI) AddDevice() error
func (*TextsecureAPI) ContactsImported ¶
func (Api *TextsecureAPI) ContactsImported(path string)
func (*TextsecureAPI) DeleteMessage ¶
func (Api *TextsecureAPI) DeleteMessage(msg *store.Message)
func (*TextsecureAPI) DeleteSession ¶
func (Api *TextsecureAPI) DeleteSession(ID int64) error
func (*TextsecureAPI) EndSession ¶
func (Api *TextsecureAPI) EndSession(ID int64) error
EndSession resets the current session.
func (*TextsecureAPI) GetActiveSessionID ¶
func (Api *TextsecureAPI) GetActiveSessionID() int64
GetActiveSessionID returns the active session id
func (*TextsecureAPI) GetAvatarImage ¶
func (Api *TextsecureAPI) GetAvatarImage(id string) string
func (*TextsecureAPI) GroupInfo ¶
func (Api *TextsecureAPI) GroupInfo(hexid string) string
func (*TextsecureAPI) IdentityInfo ¶
func (Api *TextsecureAPI) IdentityInfo(id string) string
IdentityInfo gets identity keys of you and your peer
func (*TextsecureAPI) LeaveChat ¶
func (Api *TextsecureAPI) LeaveChat()
LeaveChat reset the active session id
func (*TextsecureAPI) MarkSessionRead ¶ added in v0.9.6
func (Api *TextsecureAPI) MarkSessionRead(ID int64) error
MarkSessionRead marks the session with this id as read
func (*TextsecureAPI) RefreshDevices ¶
func (Api *TextsecureAPI) RefreshDevices() error
func (*TextsecureAPI) SaveSettings ¶
func (Api *TextsecureAPI) SaveSettings() error
func (*TextsecureAPI) SendAttachmentToApi ¶
func (Api *TextsecureAPI) SendAttachmentToApi(to int64, message string, file string) error
func (*TextsecureAPI) SendContactAttachment ¶
func (Api *TextsecureAPI) SendContactAttachment(to int64, message string, file string) error
SendContactAttachment extracts the phone number from a contact and sends it as number
func (*TextsecureAPI) SendMessage ¶
func (Api *TextsecureAPI) SendMessage(to int64, message string) error
func (*TextsecureAPI) SetActiveSessionID ¶
func (Api *TextsecureAPI) SetActiveSessionID(ID int64)
SetActiveSessionID updates the active session id
func (*TextsecureAPI) StartAfterDecryption ¶
func (Api *TextsecureAPI) StartAfterDecryption()
func (*TextsecureAPI) UnlinkDevice ¶
func (Api *TextsecureAPI) UnlinkDevice(id int) error
Click to show internal directories.
Click to hide internal directories.