Documentation
¶
Overview ¶
Package server exposes the store over an HTTP+JSON API and serves the embedded web UI. It binds localhost only and defends the no-auth API with Host/Origin checks. Live updates (SSE), search, attachments, and git status are layered on in later milestones.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wires the store into HTTP handlers.
func (*Server) StartLiveSync ¶
func (srv *Server) StartLiveSync() func()
StartLiveSync begins watching the .pine directory and broadcasting external changes over SSE. It returns a stop function. When the watcher cannot start, the server still runs (without live updates).
Click to show internal directories.
Click to hide internal directories.