Documentation ¶
Index ¶
- Variables
- func GroupUpdateMsg(tels []string, title string) string
- func ReadQr(img image.Image)
- func RunBackend()
- type GroupRecord
- type TextsecureAPI
- func (Api *TextsecureAPI) AddContact(name string, phone string)
- func (Api *TextsecureAPI) AddDevice() error
- func (Api *TextsecureAPI) ContactsImported(path string)
- func (Api *TextsecureAPI) DeleteMessage(msg *store.Message, tel string)
- func (Api *TextsecureAPI) DeleteSession(ID int64)
- func (Api *TextsecureAPI) EndSession(ID int64) error
- func (Api *TextsecureAPI) FilterContacts(sub string)
- func (Api *TextsecureAPI) FilterSessions(sub string)
- 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) LeaveGroup(hexid string) error
- func (Api *TextsecureAPI) MarkSessionRead(ID int64) error
- func (Api *TextsecureAPI) NewGroup(name string, members string) 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) SetLogLevel()
- func (Api *TextsecureAPI) StartAfterDecryption()
- func (Api *TextsecureAPI) SubmitDebugLog() (string, error)
- func (Api *TextsecureAPI) TgNotification(notification bool)
- func (Api *TextsecureAPI) UnlinkDevice(id int) error
- func (Api *TextsecureAPI) Unregister()
- func (Api *TextsecureAPI) UpdateGroup(hexid, name string, members string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Api = &TextsecureAPI{}
Functions ¶
func GroupUpdateMsg ¶
func RunBackend ¶
func RunBackend()
Types ¶
type GroupRecord ¶
type TextsecureAPI ¶
type TextsecureAPI struct { HasContacts bool PushToken string ActiveSessionID string PhoneNumber string UUID string LogLevel bool }
func (*TextsecureAPI) AddContact ¶
func (Api *TextsecureAPI) AddContact(name string, phone 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, tel string)
func (*TextsecureAPI) DeleteSession ¶
func (Api *TextsecureAPI) DeleteSession(ID int64)
func (*TextsecureAPI) EndSession ¶
func (Api *TextsecureAPI) EndSession(ID int64) error
EndSession resets the current session.
func (*TextsecureAPI) FilterContacts ¶
func (Api *TextsecureAPI) FilterContacts(sub string)
func (*TextsecureAPI) FilterSessions ¶
func (Api *TextsecureAPI) FilterSessions(sub string)
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
get identitys
func (*TextsecureAPI) LeaveChat ¶
func (Api *TextsecureAPI) LeaveChat()
LeaveChat reset the active session id
func (*TextsecureAPI) LeaveGroup ¶
func (Api *TextsecureAPI) LeaveGroup(hexid string) error
func (*TextsecureAPI) MarkSessionRead ¶ added in v0.9.6
func (Api *TextsecureAPI) MarkSessionRead(ID int64) error
MarkSessionsRead marks one or all sessions as read
func (*TextsecureAPI) NewGroup ¶
func (Api *TextsecureAPI) NewGroup(name string, members string) error
FIXME: receive members as splice, blocked by https://github.com/nanu-c/qml-go/issues/137
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) SetLogLevel ¶
func (Api *TextsecureAPI) SetLogLevel()
func (*TextsecureAPI) StartAfterDecryption ¶
func (Api *TextsecureAPI) StartAfterDecryption()
func (*TextsecureAPI) SubmitDebugLog ¶
func (Api *TextsecureAPI) SubmitDebugLog() (string, error)
func (*TextsecureAPI) TgNotification ¶
func (Api *TextsecureAPI) TgNotification(notification bool)
TgNotification turns the notification for the currently active chat on/off
func (*TextsecureAPI) UnlinkDevice ¶
func (Api *TextsecureAPI) UnlinkDevice(id int) error
func (*TextsecureAPI) UpdateGroup ¶
func (Api *TextsecureAPI) UpdateGroup(hexid, name string, members string) error
Click to show internal directories.
Click to hide internal directories.