Documentation ¶
Overview ¶
messagetransport handles HTTP requests and responses for chat operations.
Index ¶
- type ChatMessageResponse
- type MessageHandler
- func (mh *MessageHandler) CreateMessage(c *gin.Context)
- func (mh *MessageHandler) CreateThread(c *gin.Context)
- func (mh *MessageHandler) DeleteThread(c *gin.Context)
- func (mh *MessageHandler) GetAllThreads(c *gin.Context)
- func (mh *MessageHandler) GetMessagesByThreadID(c *gin.Context)
- func (mh *MessageHandler) GetThreadByID(c *gin.Context)
- type ThreadPayload
- type ThreadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessageResponse ¶
type MessageHandler ¶
type MessageHandler struct {
// contains filtered or unexported fields
}
MessageHandler handles chat-related HTTP requests.
func NewMessageHandler ¶
func NewMessageHandler(messsageService *messagebusiness.MessageService) *MessageHandler
NewMessageHandler creates a new ChatHandler.
func (*MessageHandler) CreateMessage ¶
func (mh *MessageHandler) CreateMessage(c *gin.Context)
CreateMessage handles creating a new message in a chat thread.
func (*MessageHandler) CreateThread ¶
func (mh *MessageHandler) CreateThread(c *gin.Context)
CreateThread handles the creation of a new chat thread.
func (*MessageHandler) DeleteThread ¶
func (mh *MessageHandler) DeleteThread(c *gin.Context)
DeleteThread handles the deletion of a chat thread.
func (*MessageHandler) GetAllThreads ¶
func (mh *MessageHandler) GetAllThreads(c *gin.Context)
GetAllThreads handles the retrieval of all chat threads for a specific user.
func (*MessageHandler) GetMessagesByThreadID ¶
func (mh *MessageHandler) GetMessagesByThreadID(c *gin.Context)
GetMessagesByThreadID handles retrieving messages for a specific thread with pagination.
func (*MessageHandler) GetThreadByID ¶
func (mh *MessageHandler) GetThreadByID(c *gin.Context)
GetThreadByID handles retrieving a single chat thread by its ID.
type ThreadPayload ¶
Click to show internal directories.
Click to hide internal directories.