report

package
v0.4.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonFormat = "json"
	HtmlFormat = "html"
	PdfFormat  = "pdf"
	NoneFormat = "none"
)

Variables

This section is empty.

Functions

func ExportFullReport

func ExportFullReport(
	ctx context.Context, s *db.Statistics, reportFile string, reportTime time.Time,
	wafName string, url string, openApiFile string, args []string, ignoreUnresolved bool,
	includePayloads bool, format string,
) (fullName string, err error)

ExportFullReport saves full report on disk in different formats: HTML, PDF, JSON.

func RenderConsoleReport

func RenderConsoleReport(
	s *db.Statistics,
	reportTime time.Time,
	wafName string,
	url string,
	args []string,
	ignoreUnresolved bool,
	format string,
) error

RenderConsoleReport prints a console report in selected format.

func SendReportByEmail

func SendReportByEmail(
	ctx context.Context, s *db.Statistics, email string, reportTime time.Time,
	wafName string, url string, openApiFile string, args []string, ignoreUnresolved bool, includePayloads bool,
) error

Types

type ErrorResponse

type ErrorResponse struct {
	Msg string `json:"msg"`
}

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL