Documentation
¶
Overview ¶
Package web serves the usher HTTP API and embedded static UI.
Two listeners run side by side:
- the **web** listener (TCP at s.addr) serves the SPA, JSON API, SSE stream, and /login. Every non-exempt request is gated by auth middleware when a password is configured.
- the **hook** listener (Unix socket at s.hookSockPath, mode 0600) serves only /hook/{event}. Hook traffic from the local `usher hook` subprocess never touches the public TCP port, so it doesn't need auth and a leaky-netns container can't reach it (fs-isolated).
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
}
func (*Server) RelayForeignTurn ¶ added in v0.6.0
RelayForeignTurn delivers a turn usher did NOT initiate — a background workflow continuation, a prompt typed straight into the tmux pane — to every chat that recently routed to the session. Follows are derived from the chat histories themselves (FocusSession/SourceSession references), so there is no registry to persist and restarts lose nothing. Wired as the router's ForeignTurnHandler.
Click to show internal directories.
Click to hide internal directories.