Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InspectorStats ¶
func InspectorStats(inspectorEndpoint string, multipartFormMaxMemory int64, sensitiveKeys []string) gin.HandlerFunc
Types ¶
type AllRequests ¶
type AllRequests struct {
Request []RequestStat `json:"requests"`
}
type Pagination ¶
type Pagination struct {
Total int `json:"total"`
TotalPage int `json:"total_page"`
CurrentPage int `json:"current_page"`
PerPage int `json:"per_page"`
HasNext bool `json:"has_next"`
HasPrev bool `json:"has_prev"`
NextPageUrl string `json:"next_page_url"`
PrevPageUrl string `json:"prev_page_url"`
Data []RequestStat `json:"data"`
}
func GetPaginator ¶
func GetPaginator() Pagination
type RequestStat ¶
type RequestStat struct {
RequestedAt time.Time `json:"requested_at"`
RequestUrl string `json:"request_url"`
HttpMethod string `json:"http_method"`
HttpStatus int `json:"http_status"`
ContentType string `json:"content_type"`
GetParams any `json:"get_params"`
PostParams any `json:"post_params"`
PostMultipart any `json:"post_multipart"`
Body any `json:"body"`
ClientIP string `json:"client_ip"`
Cookies any `json:"cookies"`
Headers any `json:"headers"`
}
Click to show internal directories.
Click to hide internal directories.

