Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextItem ¶
ContextItem represents a key-value pair for message context (e.g., Team, Channel)
type Formatter ¶
type Formatter interface {
// Format converts raw (HTML) content into the target format string
Format(htmlContent string) string
// WriteMessages formats and writes a collection of messages to the writer
WriteMessages(w io.Writer, messages []*MessageView) error
}
Formatter provides content formatting and writing capabilities
func NewMarkdownFormatter ¶
func NewMarkdownFormatter() Formatter
NewMarkdownFormatter creates a formatter that converts HTML to plain text
func NewPlainTextFormatter ¶
func NewPlainTextFormatter() Formatter
NewPlainTextFormatter creates a formatter that converts HTML to plain text
type MessageView ¶
type MessageView struct {
ID string
Author string
Timestamp time.Time
Content string
Context []ContextItem
}
MessageView represents the generic data needed to display a message
Click to show internal directories.
Click to hide internal directories.