handlers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkReportExportHandler

func BulkReportExportHandler(reportService service.ReportService, kind string) echo.HandlerFunc

func ReportExportHandler

func ReportExportHandler(reportService service.ReportService, kind string) echo.HandlerFunc

func ReportListHandler

func ReportListHandler(tmplSrv service.TemplateService) echo.HandlerFunc

func ReportPreviewHandler

func ReportPreviewHandler(templateService service.TemplateService, templateEngine engine.TemplateEngine, reportService service.ReportService) echo.HandlerFunc

func ReportRenderHandlder

func ReportRenderHandlder(templateService service.TemplateService) echo.HandlerFunc

Types

type BulkExportEntry

type BulkExportEntry struct {
	ID   string `json:"_id"`
	Data any    `json:"data"`
}

type BulkExportRequest

type BulkExportRequest struct {
	ID      string            `json:"_id"`
	Entries []BulkExportEntry `json:"entries"`
}

type BulkExportResponse

type BulkExportResponse struct {
	ID       string           `json:"_id"`
	ReportID string           `json:"reportId"`
	Reports  []ExportResponse `json:"reports"`
}

type ExportResponse

type ExportResponse struct {
	ID   string `json:"reportId"`
	Data string `json:"data"`
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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