conversations

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

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 ArchiveConversation(jwtToken string, conversationId string) error

func DeleteConversation

func DeleteConversation(jwtToken string, conversationId string) error

func GetConversation

func GetConversation(jwtToken string, conversationId string) (response.Conversation, error)

func GetConversationForGivenUsernames

func GetConversationForGivenUsernames(jwtToken string, usernames []string) ([]response.Conversation, error)

func GetUnreadConversationsCount

func GetUnreadConversationsCount(jwtToken string) (int, error)

func GetUserConversations

func GetUserConversations(jwtToken string) ([]response.Conversation, error)

func LeaveConversation

func LeaveConversation(jwtToken string, conversationId string) error

func SendMessageToAnExistingConversation

func SendMessageToAnExistingConversation(jwtToken string, reqBody SendMessageReqBody) (response.Conversation, error)

Types

type ConversationReqBody

type ConversationReqBody struct {
	MessageText string `json:"messageText"`
	Usernames   string `json:"userNames"`
}

type SendMessageReqBody

type SendMessageReqBody struct {
	MessageText string `json:"messageText"`
}

Jump to

Keyboard shortcuts

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