Versions in this module Expand all Collapse all v0 v0.97.0 May 24, 2021 v0.96.0 May 24, 2021 Changes in this version + type ApplicationInfo struct + BuildDate string + GOVersion string + StartTime time.Time + Version string + type DeleteReportBulkRequest struct + IDs []uint + type DetailsCreated struct + Fail uint + Success uint + type ExportAPI struct + DB ExportDatabase + func (api *ExportAPI) GetExport(ctx echo.Context) error + type ExportDatabase interface + FindReportByID func(uint) (*model.Report, error) + GetHistogramForReport func(uint) (*model.Histogram, error) + GetOptionsForReport func(uint) (*model.Options, error) + ListAllDetailsForReport func(uint) ([]*model.Detail, error) + type HistogramAPI struct + DB HistogramDatabase + func (api *HistogramAPI) GetHistogram(ctx echo.Context) error + type HistogramDatabase interface + GetHistogramForReport func(uint) (*model.Histogram, error) + type InfoAPI struct + Info ApplicationInfo + func (api *InfoAPI) GetApplicationInfo(ctx echo.Context) error + type InfoResponse struct + BuildDate string + MemoryInfo *MemoryInfo + RuntimeVersion string + Uptime string + Version string + type IngestAPI struct + DB IngestDatabase + func (api *IngestAPI) Ingest(ctx echo.Context) error + func (api *IngestAPI) IngestToProject(ctx echo.Context) error + type IngestDatabase interface + CreateDetailsBatch func(uint, []*model.Detail) (uint, uint) + CreateHistogram func(*model.Histogram) error + CreateOptions func(*model.Options) error + CreateProject func(*model.Project) error + CreateReport func(*model.Report) error + FindLatestReportForProject func(uint) (*model.Report, error) + FindProjectByID func(uint) (*model.Project, error) + UpdateProjectStatus func(uint, model.Status) error + type IngestRequest runner.Report + type IngestResponse struct + Details *DetailsCreated + Histogram *model.Histogram + Options *model.Options + Project *model.Project + Report *model.Report + type JSONExportRespose struct + Details []*runner.ResultDetail + Histogram model.BucketList + Options *model.OptionsInfo + type MemoryInfo struct + Alloc uint64 + Frees uint64 + Lookups uint64 + Mallocs uint64 + NumGC uint32 + System uint64 + TotalAlloc uint64 + type OptionsAPI struct + DB OptionsDatabase + func (api *OptionsAPI) GetOptions(ctx echo.Context) error + type OptionsDatabase interface + GetOptionsForReport func(uint) (*model.Options, error) + type ProjectAPI struct + DB ProjectDatabase + func (api *ProjectAPI) CreateProject(ctx echo.Context) error + func (api *ProjectAPI) DeleteProject(ctx echo.Context) error + func (api *ProjectAPI) GetProject(ctx echo.Context) error + func (api *ProjectAPI) ListProjects(ctx echo.Context) error + func (api *ProjectAPI) UpdateProject(ctx echo.Context) error + type ProjectDatabase interface + CountProjects func() (uint, error) + CreateProject func(project *model.Project) error + DeleteProject func(*model.Project) error + FindProjectByID func(id uint) (*model.Project, error) + ListProjects func(limit, page uint, sortField, order string) ([]*model.Project, error) + UpdateProject func(*model.Project) error + type ProjectList struct + Data []*model.Project + Total uint + type ReportAPI struct + DB ReportDatabase + func (api *ReportAPI) DeleteReport(ctx echo.Context) error + func (api *ReportAPI) DeleteReportBulk(ctx echo.Context) error + func (api *ReportAPI) GetPreviousReport(ctx echo.Context) error + func (api *ReportAPI) GetReport(ctx echo.Context) error + func (api *ReportAPI) ListReportsAll(ctx echo.Context) error + func (api *ReportAPI) ListReportsForProject(ctx echo.Context) error + type ReportDatabase interface + CountReports func() (uint, error) + CountReportsForProject func(uint) (uint, error) + DeleteReport func(*model.Report) error + DeleteReportBulk func([]uint) (int, error) + FindPreviousReport func(uint) (*model.Report, error) + FindReportByID func(uint) (*model.Report, error) + ListReports func(limit, page uint, sortField, order string) ([]*model.Report, error) + ListReportsForProject func(pid, limit, page uint, sortField, order string) ([]*model.Report, error) + type ReportList struct + Data []*model.Report + Total uint