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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkReportExportHandler added in v0.2.0

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

func Health

func Health() gin.HandlerFunc

func ReportExportHandler

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

func ReportListHandler

func ReportListHandler(tmplSrv service.TemplateService) gin.HandlerFunc

func ReportPreviewHandler

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

func ReportRenderHandlder

func ReportRenderHandlder(templateService service.TemplateService) gin.HandlerFunc

Types

type BulkExportEntry added in v0.2.0

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

type BulkExportRequest added in v0.2.0

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

type BulkExportResponse added in v0.2.0

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

type ExportResponse added in v0.2.0

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