Documentation
¶
Overview ¶
Package server provides an HTTP server that serves the React web viewer and exposes the diff result via a REST API.
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 serves the web viewer and diff API.
func New ¶
func New(port int, result *diff.DiffResult, openBrowser bool) *Server
New creates a new web viewer server.
func (*Server) ListenAndServe ¶
ListenAndServe starts the HTTP server.
Click to show internal directories.
Click to hide internal directories.