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 Stack
- type StackFrame
- 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"`
Stack Stack `json:"stack"`
}
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"`
BeginStack Stack `json:"begin_stack"`
EndStack *Stack `json:"end_stack"`
}
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 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"`
SvcName string `json:"svc_name"`
RPCName string `json:"rpc_name"`
CallLoc *int32 `json:"call_loc"`
DefLoc int32 `json:"def_loc"`
Inputs [][]byte `json:"inputs"`
Outputs [][]byte `json:"outputs"`
Err []byte `json:"err"`
ErrStack *Stack `json:"err_stack"`
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 Stack ¶ added in v0.16.2
type Stack struct {
Frames []StackFrame `json:"frames"`
}
type StackFrame ¶ added in v0.16.2
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"`
Meta json.RawMessage `json:"meta"`
}
Click to show internal directories.
Click to hide internal directories.