Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPResponseReport ¶
type HTTPResponseReport struct {
ID string `json:"id"`
Name string `json:"name"`
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
Vulns []HTTPResponseVulnerability `json:"vulnerabilities"`
}
func FormatReports ¶
func FormatReports(reports []*report.ScanReport) (responseReports []HTTPResponseReport)
type Handler ¶
type Handler struct {
}
func NewHandler ¶
func NewHandler() *Handler
func (*Handler) ScanGraphQL ¶
func (*Handler) ScanOpenAPI ¶
type NewGraphQLScanRequest ¶
type NewGraphQLScanRequest struct {
Endpoint string `form:"endpoint" json:"endpoint" binding:"required"`
Headers []struct {
Name string `json:"name"`
Value string `json:"value"`
} `form:"headers" json:"headers"`
Cookies []struct {
Name string `json:"name"`
Value string `json:"value"`
} `form:"cookies" json:"cookies"`
}
type NewOpenAPIScanRequest ¶
type NewURLScanRequest ¶
type NewURLScanRequest struct {
URL string `form:"url" json:"url" binding:"required"`
Method string `form:"method" json:"method" binding:"required"`
Headers []struct {
Name string `json:"name"`
Value string `json:"value"`
} `form:"headers" json:"headers"`
Cookies []struct {
Name string `json:"name"`
Value string `json:"value"`
} `form:"cookies" json:"cookies"`
}
Click to show internal directories.
Click to hide internal directories.