Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int
Theme string
Content string
Filename string
IsMarkdown bool
Verbose bool
Label string // display name for window badge
ColorHex string // hex color for window badge (e.g. "#FF453A")
}
Config holds server configuration.
type Server ¶
type Server struct {
OnShutdown func() // called before server shutdown (e.g. to terminate webview)
// contains filtered or unexported fields
}
Server is the HTTP server for mmdp.
func (*Server) UpdateContent ¶
UpdateContent updates the diagram content and broadcasts to WebSocket clients.
Click to show internal directories.
Click to hide internal directories.