Documentation ¶
Index ¶
- func GetModels() string
- type Chat
- type ChatSettings
- type CreateDHData
- type EncryptedMessage
- type File
- type FolkChatsInfo
- type ForceMsgToUser
- type Message
- type MessageBlock
- type MessageCommand
- type MessageContent
- type MessageContentToUser
- type MessageType
- type MiddleWareMessage
- type NewMessageToUser
- type User
- type UserChatInfo
- type UserSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChatSettings ¶
type ChatSettings struct {
Name string `json:"name"`
}
type CreateDHData ¶
type EncryptedMessage ¶
type FolkChatsInfo ¶
type ForceMsgToUser ¶
type ForceMsgToUser struct { UserID int64 Msg NewMessageToUser }
type MessageBlock ¶
type MessageCommand ¶
type MessageCommand int
const ( MessageCommandNull MessageCommand = iota MessageCommandUserInsertedToChat // 1 MessageCommandUserCreatedChat // 2 MessageCommandUserInsertedToChannel // 3 MessageCommandUserCreatedChannel // 4 MessageCommandUserInsertedToDialog // 5 MessageCommandUserCreatedDialog // 6 MessageCommandUserLeaveChat // 7 MessageCommandUserReturnsToChat // 8 MessageCommandUserWasBanned // 9 MessageCommandUserWasUnbanned // 10 )
type MessageContent ¶
type MessageContentToUser ¶
type MessageType ¶
type MessageType int
MessageType - type for message type's aliases
const ( //SystemMessageType - system message alias SystemMessageType MessageType = 1 //UserMessageType - user message alias UserMessageType MessageType = 0 )
type MiddleWareMessage ¶
type MiddleWareMessage struct { ID int64 // contains filtered or unexported fields }
type NewMessageToUser ¶
type UserChatInfo ¶
type UserChatInfo struct { ID int64 `json:"id"` Name string `json:"name"` Type int `json:"type"` //Addr_users []string LastSender string `json:"last_sender"` AdminID int64 `json:"admin_id"` //Moders_ids []float64 `json:"moderators_ids"` LastMessage *MessageContent `json:"last_message"` LastMessageTime int64 `json:"last_message_time"` View int `json:"view"` Deleted bool `json:"deleted"` Banned bool `json:"banned"` Online int64 `json:"online"` }
type UserSettings ¶
Click to show internal directories.
Click to hide internal directories.