worker

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Api = &TextsecureAPI{}

Functions

func GroupUpdateMsg

func GroupUpdateMsg(tels []string, title string) string

func ReadQr

func ReadQr(img image.Image)

func RunBackend

func RunBackend()

Types

type GroupRecord

type GroupRecord struct {
	ID      int64
	GroupID string
	Name    string
	Members string
	Avatar  []byte
	Active  bool
}

type TextsecureAPI

type TextsecureAPI struct {
	HasContacts     bool
	PushToken       string
	ActiveSessionID string
	PhoneNumber     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(tel string)

func (*TextsecureAPI) EndSession

func (Api *TextsecureAPI) EndSession(tel string) error

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() string

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()

func (*TextsecureAPI) LeaveGroup

func (Api *TextsecureAPI) LeaveGroup(hexid string) error

func (*TextsecureAPI) MarkSessionsRead

func (Api *TextsecureAPI) MarkSessionsRead(tel string)

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, message string, file string) error

func (*TextsecureAPI) SendContactAttachment

func (Api *TextsecureAPI) SendContactAttachment(to, message string, file string) error

func (*TextsecureAPI) SendMessage

func (Api *TextsecureAPI) SendMessage(to, message string) error

func (*TextsecureAPI) SetActiveSessionID

func (Api *TextsecureAPI) SetActiveSessionID(sId string)

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) Test

func (Api *TextsecureAPI) Test()

func (*TextsecureAPI) TgNotification

func (Api *TextsecureAPI) TgNotification(notification bool)

func (*TextsecureAPI) UnlinkDevice

func (Api *TextsecureAPI) UnlinkDevice(id int) error

func (*TextsecureAPI) Unregister

func (Api *TextsecureAPI) Unregister()

unregister signal id

func (*TextsecureAPI) UpdateGroup

func (Api *TextsecureAPI) UpdateGroup(hexid, name string, members string) error

Jump to

Keyboard shortcuts

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