chat

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMessages

type ChatMessages struct {
	OwnerId  string `json:"owner_id"`
	Message  string `json:"message"`
	SendTime int    `json:"send_time"`
}

type ChatParticipants

type ChatParticipants struct {
	ParticipantId string `json:"participant_id"`
	LastSeen      int    `json:"last_seen"`
}

type ContentInput

type ContentInput struct {
	Message      string   `json:"message"`
	RecipientIds []string `json:"recipient_ids"`
}

type ContentMessage

type ContentMessage struct {
	Message string `json:"message"`
	ChatId  string `json:"chat_id"`
}

type CreateChatResponse

type CreateChatResponse struct {
	Chat model.Chat
	Code int
	Err  error
}

func CreateChat

func CreateChat(patientID string, content ContentInput) CreateChatResponse

type GetChatByIdResponse

type GetChatByIdResponse struct {
	Chat model.Chat
	Code int
	Err  error
}

func UpdateMessageRead

func UpdateMessageRead(patientID string, id string) GetChatByIdResponse

type GetChatsResponse

type GetChatsResponse struct {
	Chats []model.Chat
	Code  int
	Err   error
}

func GetChat

func GetChat(patientId string) GetChatsResponse

type MessagesInput

type MessagesInput struct {
	OwnerId  string `json:"owner_id"`
	Message  string `json:"message"`
	SendTime int    `json:"send_time"`
}

type ParticipantsInput

type ParticipantsInput struct {
	ParticipantId string `json:"participant_id"`
	LastSeen      int    `json:"last_seen"`
}

type UpdateChatResponse

type UpdateChatResponse struct {
	Chat model.Chat
	Code int
	Err  error
}

func AddMessageChat

func AddMessageChat(patientID string, content ContentMessage) UpdateChatResponse

Jump to

Keyboard shortcuts

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