Documentation
¶
Overview ¶
Copyright © 2020 Pro Warehouse B.V. All Rights Reserved
Copyright © 2020 Pro Warehouse B.V. All Rights Reserved
Copyright © 2020 Pro Warehouse B.V. All Rights Reserved
Copyright © 2020 Pro Warehouse B.V. All Rights Reserved
Copyright © 2020 Pro Warehouse B.V. All Rights Reserved
Copyright © 2020 Pro Warehouse B.V. All Rights Reserved
Index ¶
- func CheckExcludedPaths(path string) bool
- func CheckVariablesAreSet()
- func Dashboard(c *gin.Context)
- func DumpResponse(c *gin.Context, blw *BodyLogWriter, body string)
- func GetDB() *sql.DB
- func GetLogs(c *gin.Context)
- func GetRequests(c *gin.Context)
- func LogDashboard(c *gin.Context)
- func ReplaceVariablesInTemplate(rawTemplate string, variables map[string]string) string
- func ResponseLogger(c *gin.Context)
- func Setup(engine *gin.Engine)
- func ShowGoScopePage(c *gin.Context, rawTemplate string, variables map[string]string)
- func ShowLog(c *gin.Context)
- func ShowRequest(c *gin.Context)
- func UnixTimeToHuman(rawTime int) string
- type BodyLogWriter
- type DetailedRequest
- type DetailedResponse
- type ExceptionRecord
- type LoggerGoScope
- type RecordByUri
- type SummarizedRequest
- type SummarizedResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckExcludedPaths ¶
func CheckVariablesAreSet ¶ added in v1.0.4
func CheckVariablesAreSet()
func DumpResponse ¶
func DumpResponse(c *gin.Context, blw *BodyLogWriter, body string)
func GetRequests ¶
func LogDashboard ¶
func ResponseLogger ¶
func ShowGoScopePage ¶
func ShowRequest ¶
func UnixTimeToHuman ¶ added in v1.0.4
Types ¶
type BodyLogWriter ¶
type BodyLogWriter struct {
gin.ResponseWriter
// contains filtered or unexported fields
}
type DetailedRequest ¶
type DetailedRequest struct {
Body string `json:"body"`
ClientIp string `json:"client_ip"`
Headers string `json:"headers"`
Host string `json:"host"`
Method string `json:"method"`
Path string `json:"path"`
Referrer string `json:"referrer"`
Time int `json:"time"`
Uid string `json:"uid"`
Url string `json:"url"`
UserAgent string `json:""`
}
func GetDetailedRequest ¶
func GetDetailedRequest(requestUid string) DetailedRequest
type DetailedResponse ¶
type DetailedResponse struct {
Body string `json:"body"`
ClientIp string `json:"client_ip"`
Headers string `json:"headers"`
Path string `json:"path"`
Size int `json:"size"`
Status string `json:"status"`
Time int `json:"time"`
RequestUid string `json:"request_uid"`
Uid string `json:"uid"`
}
func GetDetailedResponse ¶
func GetDetailedResponse(requestUid string) DetailedResponse
type ExceptionRecord ¶
type ExceptionRecord struct {
Error string `json:"error"`
Time int `json:"time"`
Uid string `json:"uid"`
}
func GetDetailedLog ¶
func GetDetailedLog(requestUid string) ExceptionRecord
type LoggerGoScope ¶
type RecordByUri ¶
type RecordByUri struct {
Uid string `uri:"id" binding:"required"`
}
type SummarizedRequest ¶
Click to show internal directories.
Click to hide internal directories.