Documentation
¶
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 embedded web UI and WebSocket updates.
func New ¶
func New(s *storage.ObservabilityStorage, allowedOrigins []string) *Server
New creates a new web UI server. allowedOrigins are URI patterns like "http://localhost:*"; schemes are stripped for the websocket library which matches on host only.
func (*Server) ListenAndServe ¶
ListenAndServe starts a standalone HTTP server for the web UI.
func (*Server) RegisterRoutes ¶
RegisterRoutes attaches web UI routes to an existing ServeMux.
Click to show internal directories.
Click to hide internal directories.