MCPcopy Index your code
hub / github.com/coder/coder / publishEvent

Method publishEvent

coderd/x/chatd/chatd.go:5465–5470  ·  view source on GitHub ↗
(chatID uuid.UUID, event codersdk.ChatStreamEvent)

Source from the content-addressed store, hash-verified

5463}
5464
5465func (p *Server) publishEvent(chatID uuid.UUID, event codersdk.ChatStreamEvent) {
5466 if event.ChatID == uuid.Nil {
5467 event.ChatID = chatID
5468 }
5469 p.publishToStream(chatID, event)
5470}
5471
5472func (p *Server) publishStatus(chatID uuid.UUID, status database.ChatStatus, workerID uuid.NullUUID) {
5473 p.publishEvent(chatID, codersdk.ChatStreamEvent{

Callers 11

SendMessageMethod · 0.95
EditMessageMethod · 0.95
DeleteQueuedMethod · 0.95
PromoteQueuedMethod · 0.95
publishStatusMethod · 0.95
publishRetryMethod · 0.95
publishErrorMethod · 0.95
publishMessageMethod · 0.95
publishEditedMessageMethod · 0.95
publishMessagePartMethod · 0.95
processChatMethod · 0.95

Calls 1

publishToStreamMethod · 0.95

Tested by

no test coverage detected