Documentation ¶
Index ¶
- type BodyLogWriter
- type BodyLogWriterResponse
- type DetailedRequest
- type DetailedResponse
- type DumpResponsePayload
- type ExceptionRecord
- type GoScopeApplicationEnvironment
- type GoScopeInitData
- type RecordByURI
- type RequestFilter
- type SearchRequestPayload
- type SummarizedRequest
- type SummarizedResponse
- type SystemInformationResponse
- type SystemInformationResponseCPU
- type SystemInformationResponseDisk
- type SystemInformationResponseHost
- type SystemInformationResponseMemory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodyLogWriter ¶
type BodyLogWriter struct { gin.ResponseWriter Body *bytes.Buffer }
type BodyLogWriterResponse ¶
type BodyLogWriterResponse struct { Blw *BodyLogWriter Rdr io.ReadCloser }
type DetailedRequest ¶
type DetailedRequest struct { Body string `json:"body"` ClientIP string `json:"clientIP"` 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:"userAgent"` }
type DetailedResponse ¶
type DumpResponsePayload ¶
type ExceptionRecord ¶
type GoScopeApplicationEnvironment ¶
type GoScopeApplicationEnvironment struct { // ApplicationID is a string used to identify your application. // This allows having a single go_scope database for several applications. ApplicationID string // ApplicationName is the name to display in the header of the frontend and in API responses. ApplicationName string // ApplicationTimezone is the Go formatted timezone, e.g. Europe/Amsterdam ApplicationTimezone string // GoScopeDatabaseConnection is the string to connect to the desired database GoScopeDatabaseConnection string // GoScopeDatabaseType is the type of DB to connect to, e.g. the connector name, mysql GoScopeDatabaseType string // GoScopeEntriesPerPage is how many logs & requests to show per page GoScopeEntriesPerPage int // HasFrontendDisabled decides if the frontend should be accessible HasFrontendDisabled bool // GoScopeDatabaseMaxOpenConnections is the maximum open connections of the DB pool GoScopeDatabaseMaxOpenConnections int // GoScopeDatabaseMaxIdleConnections is the maximum idle connections of the DB pool GoScopeDatabaseMaxIdleConnections int // GoScopeDatabaseMaxConnLifetime is the maximum connection lifetime of each connection of the DB pool GoScopeDatabaseMaxConnLifetime int }
GoScopeApplicationEnvironment is the required application environment variables.
type GoScopeInitData ¶
type GoScopeInitData struct { // Router represents the gin.Engine to attach the routes to Router *gin.Engine // RouteGroup represents the gin.RouterGroup to attach the GoScope routes to RouteGroup *gin.RouterGroup // Config represents the required variables to initialize GoScope Config *GoScopeApplicationEnvironment }
type RecordByURI ¶
type RecordByURI struct {
UID string `uri:"id" binding:"required"`
}
type RequestFilter ¶
type SearchRequestPayload ¶
type SearchRequestPayload struct { Query string `json:"query"` Filter RequestFilter `json:"filter"` }
type SummarizedRequest ¶
type SummarizedResponse ¶
type SystemInformationResponse ¶
type SystemInformationResponse struct { ApplicationName string `json:"applicationName"` CPU SystemInformationResponseCPU `json:"cpu"` Disk SystemInformationResponseDisk `json:"disk"` Host SystemInformationResponseHost `json:"host"` Memory SystemInformationResponseMemory `json:"memory"` Environment map[string]string `json:"environment"` }
Click to show internal directories.
Click to hide internal directories.