Documentation
¶
Overview ¶
Package dash serves the Encore Developer Dashboard.
Index ¶
- type QueryRequest
- type Server
- func (s *Server) OnCompileStart(r *run.Run)
- func (s *Server) OnError(r *run.Run, err *errlist.List)
- func (s *Server) OnReload(r *run.Run)
- func (s *Server) OnStart(r *run.Run)
- func (s *Server) OnStderr(r *run.Run, out []byte)
- func (s *Server) OnStdout(r *run.Run, out []byte)
- func (s *Server) OnStop(r *run.Run)
- func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)
- func (s *Server) WebSocket(w http.ResponseWriter, req *http.Request)
- type TransactionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryRequest ¶ added in v1.50.1
type QueryRequest struct {
Query string `json:"query"`
Params []any `json:"params"`
ArrayMode bool `json:"arrayMode"`
DbID string `json:"dbId"`
AppID string `json:"appId"`
}
QueryRequest represents the request body for the /query endpoint
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the http.Handler for serving the developer dashboard.
func NewServer ¶
func NewServer(appsMgr *apps.Manager, runMgr *run.Manager, nsMgr *namespace.Manager, tr trace2.Store, dashPort int) *Server
NewServer starts a new server and returns it.
func (*Server) OnCompileStart ¶ added in v1.31.0
Click to show internal directories.
Click to hide internal directories.