MCPcopy Create free account
hub / github.com/LeoninCS/DevDesk / SetContent

Method SetContent

backend/internal/service/Markdown.go:79–92  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

77}
78
79func (d *Document) SetContent(content string) {
80 d.mu.Lock()
81 defer d.mu.Unlock()
82
83 d.Content = content
84
85 for ch := range d.Clients {
86 select {
87 case ch <- content:
88 default:
89 }
90 }
91
92}
93
94func (d *Document) AddClient() chan string {
95 ch := make(chan string, 10)

Callers 1

UpdateDocumentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected