cmd

package
v0.0.0-...-e7e2df9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupReportServer

func SetupReportServer(r *gin.Engine) *gin.Engine

Types

type Config

type Config struct {
	TemplatesPath string
	RenderTimeout time.Duration
	ServerHost    string
	ServerPort    int

	ViewportHeight int
	ViewportWidth  int
}

func ParseConfig

func ParseConfig() (Config, error)

func (Config) BaseUrl

func (config Config) BaseUrl() string

type Module

type Module struct {
	Config Config

	Server *Server
	// contains filtered or unexported fields
}

func NewModule

func NewModule(config Config) *Module

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config Config, templateService business.TemplateService, engine data.TemplateEngine, reportService business.ReportService) *Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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