Documentation ¶
Overview ¶
Package dash serves the Encore Developer Dashboard.
Index ¶
- type DBQuery
- type DBTransaction
- type Event
- type Goroutine
- type HTTPCall
- type HTTPCallMetrics
- type LogField
- type LogMessage
- type RPCCall
- type Request
- type Server
- 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 Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBQuery ¶
type DBQuery struct { Type string `json:"type"` Goid uint32 `json:"goid"` Txid *uint32 `json:"txid"` CallLoc int32 `json:"call_loc"` StartTime int64 `json:"start_time"` EndTime *int64 `json:"end_time,omitempty"` Query []byte `json:"query"` HTMLQuery []byte `json:"html_query"` Err []byte `json:"err"` }
type DBTransaction ¶
type DBTransaction struct { Type string `json:"type"` Goid uint32 `json:"goid"` Txid uint32 `json:"txid"` StartLoc int32 `json:"start_loc"` EndLoc int32 `json:"end_loc"` StartTime int64 `json:"start_time"` EndTime *int64 `json:"end_time,omitempty"` Err []byte `json:"err"` CompletionType string `json:"completion_type"` Queries []*DBQuery `json:"queries"` }
type HTTPCall ¶
type HTTPCall struct { Type string `json:"type"` Goid uint32 `json:"goid"` ReqID string `json:"req_id"` StartTime int64 `json:"start_time"` EndTime *int64 `json:"end_time,omitempty"` Method string `json:"method"` Host string `json:"host"` Path string `json:"path"` URL string `json:"url"` StatusCode int `json:"status_code"` Err []byte `json:"err"` Metrics HTTPCallMetrics `json:"metrics"` }
type HTTPCallMetrics ¶
type HTTPCallMetrics struct { // Times are all 0 if not set GotConn *int64 `json:"got_conn,omitempty"` ConnReused bool `json:"conn_reused,omitempty"` DNSDone *int64 `json:"dns_done,omitempty"` TLSHandshakeDone *int64 `json:"tls_handshake_done,omitempty"` WroteHeaders *int64 `json:"wrote_headers,omitempty"` WroteRequest *int64 `json:"wrote_request,omitempty"` FirstResponseByte *int64 `json:"first_response,omitempty"` BodyClosed *int64 `json:"body_closed,omitempty"` }
type LogField ¶ added in v0.12.0
type LogField struct { Key string `json:"key"` Value interface{} `json:"value"` }
type LogMessage ¶ added in v0.12.0
type Request ¶
type Request struct { ID string `json:"id"` Type string `json:"type"` ParentID *string `json:"parent_id"` Goid uint32 `json:"goid"` StartTime int64 `json:"start_time"` EndTime *int64 `json:"end_time,omitempty"` CallLoc *int32 `json:"call_loc"` DefLoc int32 `json:"def_loc"` Inputs [][]byte `json:"inputs"` Outputs [][]byte `json:"outputs"` Err []byte `json:"err"` Events []Event `json:"events"` Children []*Request `json:"children"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the http.Handler for serving the developer dashboard.
type Trace ¶
type Trace struct { ID uuid.UUID `json:"id"` Date time.Time `json:"date"` StartTime int64 `json:"start_time"` EndTime int64 `json:"end_time"` Root *Request `json:"root"` Auth *Request `json:"auth"` UID *string `json:"uid"` UserData []byte `json:"user_data"` Locations map[int32]json.RawMessage `json:"locations"` }
Click to show internal directories.
Click to hide internal directories.