Versions in this module Expand all Collapse all v0 v0.3.1 Nov 22, 2023 Changes in this version type Client + func (api *Client) GetMessageByHash(hash string) (Message, error) type Message + ReplyTo ReplyTo + type ReplyTo struct + MessageHash string + MessageId int + MessageVerification string + func (rt *ReplyTo) UnmarshalJSON(b []byte) error v0.3.0 Oct 21, 2023 Changes in this version + type ChannelInfo struct + ID int + type ChannelInfoIDInt struct + ID int + type ChannelInfoIDString struct + ID int + type ChannelInfoRadikal struct + CanLeave bool + CompanyID string + Description string + Encrypted bool + Inviteable string + Key string + LastAction string + LastActivity FlexInt + Membership MembershipInfo + Name string + NumMembersWithoutKeys int + PendingCount int + ShowMembershipActivities bool + Type string + Unread int + UserCount int + Visible bool + Writable string + type ChannelInfoResponse struct + Payload ChannelInfoResponsePayload + Signature string + Status Status + type ChannelInfoResponsePayload struct + Channel ChannelInfoIDInt + type CheckResponse struct + Payload CheckResponsePayload + Signature string + Status Status + type CheckResponsePayload struct + Success bool + type Client struct + UserInfo User + func New(cc ClientConfig) *Client + func (api *Client) Check() (bool, error) + func (api *Client) CreateConversation(users []User) (Conversation, error) + func (api *Client) Debugf(format string, v ...interface{}) + func (api *Client) Debugln(v ...interface{}) + func (api *Client) DecryptMessages(messages []Message, encryptedKey string) ([]Message, error) + func (api *Client) GetChannelContent(channel ChannelInfo, limit, offset int) ([]Message, error) + func (api *Client) GetChannelInfo(channelID int) (ChannelInfo, error) + func (api *Client) GetConversationContent(conversation Conversation, limit, offset int) ([]Message, error) + func (api *Client) GetFile(f File) (string, error) + func (api *Client) GetFolderContent(ch ChannelInfo, fID, limit, offset int) (FolderGetResponseContent, error) + func (api *Client) GetFromCache() error + func (api *Client) GetSubscribedChannels() ([]ChannelInfo, error) + func (api *Client) GetUserInfo(userID int) (User, error) + func (api *Client) GetUserMe() (User, error) + func (api *Client) ListUsers(limit int, offset int, search string) ([]User, error) + func (api *Client) LoadPrivateKey(encryptionPassword string) error + func (api *Client) Login() error + func (api *Client) ManageListUsers(limit int, offset int, search string, companyID string) ([]User, error) + func (api *Client) SendAlarmMessageToConversation(conversation Conversation, plainMessage string) (Message, error) + func (api *Client) SendAlarmMessageToUser(userID int, message string) (Message, error) + func (api *Client) SendMessageToChannel(channel ChannelInfo, plainMessage string) (Message, error) + func (api *Client) SendMessageToConversation(conversation Conversation, plainMessage string) (Message, error) + func (api *Client) SendMessageToUser(userID int, message string) (Message, error) + func (api *Client) SetDebug() + func (api *Client) SetLogger(logger *log.Logger) + type ClientConfig struct + APIURL string + AppName string + CacheClientKeyPath string + DeviceID string + Email string + Password string + type Conversation struct + Created string + Encrypted bool + ID string + Key string + LastAction string + LastActivity string + Name string + UnreadMessages int + UserCount int + type ConversationResponse struct + Payload ConversationResponsePayload + Signature string + Status Status + type ConversationResponsePayload struct + Conversation Conversation + type File struct + E2EIV string + Encrypted bool + Ext string + ID int + Keys []Key + LastDownload int + MD5 string + Mime string + Modified int + Name string + OwnerID int + SizeBytes int + TimesDownloaded int + TypeID int + Uploaded int + type FlexInt int + func (fi *FlexInt) UnmarshalJSON(b []byte) error + type Folder struct + Creator int + ID int + Modified int + Name string + ParentID int + Type string + TypeID int + type FolderGetResponse struct + Payload FolderGetResponsePayload + Signature string + Status Status + type FolderGetResponseContent struct + Files []File + Folder []Folder + Permission string + type FolderGetResponsePayload struct + Content FolderGetResponseContent + type IDKeyCombo struct + ID string + Key string + type Key struct + ChatID int + ChatKey string + FileID int + IV string + Key string + Type string + type KeyDerivationProperties struct + Iterations int + Prf string + Salt string + type Keys struct + PrivateKey string + PublicKey string + UserID string + type LoginResponse struct + Payload LoginResponsePayload + Signature string + Status Status + type LoginResponsePayload struct + ClientKey string + UserInfo User + type ManageUser struct + Active string + AllowsVoipCalls bool + Deactivated string + Email bool + FirstName string + ID string + Image string + LastLogin int + LastName string + MembershipExpiry string + Tag string + TimeJoined string + type ManageUsersListingResponse struct + Payload ManageUsersListingResponsePayload + Signature string + Status Status + type ManageUsersListingResponsePayload struct + TotalRecords int + Users []User + type MembershipInfo struct + Confirmation string + IsMember bool + Joined string + MayManage bool + Write bool + type Message struct + Alarm bool + ChannelID int + ConversationID int + DeleteTime int + DeviceID string + Encrypted bool + Hash string + ID int + IV string + IsForwarded bool + Kind string + SendTime int + Sender User + Text string + ThreadID int + Type string + Verification string + type MessageContentResponse struct + Payload MessageContentResponsePayload + Signature string + Status Status + type MessageContentResponsePayload struct + Messages []map[string]interface{} + type MessageResponse struct + Payload MessageResponsePayload + Signature string + Status Status + type MessageResponsePayload struct + Message Message + type NestedKey struct + Ciphertext string + IV string + KDP KeyDerivationProperties + type PrivateKeyResponse struct + Payload PrivateKeyResponsePayload + Signature string + Status Status + type PrivateKeyResponsePayload struct + Keys Keys + type Role struct + CompanyId string + Global string + ID string + Name string + Time string + type Status struct + Message json.RawMessage + ShortMessage json.RawMessage + Value string + type StatusResponse struct + Status json.RawMessage + type StatusTyped struct + Message string + ShortMessage string + Value string + type SubscribedChannelsResponse struct + Payload SubscribedChannelsResponsePayload + Signature string + Status Status + type SubscribedChannelsResponsePayload struct + Channels []ChannelInfoIDString + type User struct + Active string + AllowsVoipCalls bool + Deleted string + FirstName string + ID string + LastName string + Online bool + PublicKey string + Roles []Role + SocketID string + Tag string + type UserIDKeyCombination struct + UserID string + UserKey string + type UserInfoResponse struct + Payload UserListingResponsePayload + Signature string + Status Status + type UserListingResponsePayload struct + User User + type UsersListingResponse struct + Payload UsersListingResponsePayload + Signature string + Status Status + type UsersListingResponsePayload struct + Users []User v0.2.0 Mar 20, 2023