Documentation ¶
Index ¶
- func AddPrivateOrGroupConversation(jwtToken string, reqBody ConversationReqBody) (response.Conversation, error)
- func ArchiveConversation(jwtToken string, conversationId string) error
- func DeleteConversation(jwtToken string, conversationId string) error
- func GetConversation(jwtToken string, conversationId string) (response.Conversation, error)
- func GetConversationForGivenUsernames(jwtToken string, usernames []string) ([]response.Conversation, error)
- func GetUnreadConversationsCount(jwtToken string) (int, error)
- func GetUserConversations(jwtToken string) ([]response.Conversation, error)
- func LeaveConversation(jwtToken string, conversationId string) error
- func SendMessageToAnExistingConversation(jwtToken string, reqBody SendMessageReqBody) (response.Conversation, error)
- type ConversationReqBody
- type SendMessageReqBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPrivateOrGroupConversation ¶
func AddPrivateOrGroupConversation(jwtToken string, reqBody ConversationReqBody) (response.Conversation, error)
func ArchiveConversation ¶
func DeleteConversation ¶
func GetConversation ¶
func GetConversation(jwtToken string, conversationId string) (response.Conversation, error)
func GetConversationForGivenUsernames ¶
func GetConversationForGivenUsernames(jwtToken string, usernames []string) ([]response.Conversation, error)
func GetUserConversations ¶
func GetUserConversations(jwtToken string) ([]response.Conversation, error)
func LeaveConversation ¶
func SendMessageToAnExistingConversation ¶
func SendMessageToAnExistingConversation(jwtToken string, reqBody SendMessageReqBody) (response.Conversation, error)
Types ¶
type ConversationReqBody ¶
type SendMessageReqBody ¶
type SendMessageReqBody struct {
MessageText string `json:"messageText"`
}
Source Files ¶
- conversations.1.1.get_unread_conversations_count.go
- conversations.1.2.get_user_conversations.go
- conversations.1.3.add_private_or_group_conversation.go
- conversations.1.4.get_conversation_for_given_usernames.go
- conversations.1.5.send_message_to_an_existing_conversation.go
- conversations.1.6.get_conversation.go
- conversations.1.7.delete_conversation.go
- conversations.1.8.leave_conversation.go
- conversations.1.9.archive_conversation.go
Click to show internal directories.
Click to hide internal directories.