Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalChatHandler ¶
type LocalChatHandler struct {
// contains filtered or unexported fields
}
LocalChatHandler handles all /api/local/* endpoints.
func NewLocalChatHandler ¶
func NewLocalChatHandler( receiver *local.LocalReceiver, hub *local.SSEHub, sessionStore *store.LocalSessionStore, replyStore *store.LocalReplyStore, msgStore *store.MessageStore, sessionCtx *store.SessionStore, ) *LocalChatHandler
NewLocalChatHandler constructs a LocalChatHandler.
func (*LocalChatHandler) RegisterRoutes ¶
func (h *LocalChatHandler) RegisterRoutes(rg *gin.RouterGroup)
RegisterRoutes registers all non-SSE routes on the given router group.
func (*LocalChatHandler) StreamReplies ¶
func (h *LocalChatHandler) StreamReplies(c *gin.Context)
StreamReplies is registered separately on the raw router to bypass gzip middleware.