Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSEBroker ¶
type SSEBroker struct {
// contains filtered or unexported fields
}
SSEBroker manages Server-Sent Events for live reload.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the HTTP server for web mode.
func New ¶
func New(cfg *config.Config, idx index.Indexer, links *index.LinkGraph, plugins *plugin.Registry) *Server
New creates a new web server.
func (*Server) OnFileChange ¶
OnFileChange is a callback for the file watcher. Wire it to index.Watcher's onChange.
Click to show internal directories.
Click to hide internal directories.