config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server   ServerConfig
	Export   ExportConfig
	Features FeatureFlags
}

Config holds the web example configuration.

func Defaults

func Defaults() Config

Defaults returns a Config with sensible defaults.

type ExportConfig

type ExportConfig struct {
	ArtifactDir    string
	MaxRows        int
	DefaultFormat  string
	EnableAsync    bool
	CleanupOnStart bool
	Template       TemplateConfig
	PDF            PDFConfig
	Notifications  NotificationConfig
}

ExportConfig holds export-specific settings.

type FeatureFlags

type FeatureFlags struct {
	EnableAuth bool
}

FeatureFlags toggles optional features.

type NotificationConfig

type NotificationConfig struct {
	Enabled    bool
	Recipients []string
	Channels   []string
	SMTP       SMTPConfig
}

NotificationConfig holds export-ready notification settings.

type PDFConfig

type PDFConfig struct {
	Enabled              bool
	Engine               string
	WKHTMLTOPDFPath      string
	ChromiumPath         string
	Headless             bool
	Args                 []string
	Timeout              int // seconds
	PageSize             string
	PrintBackground      bool
	PreferCSSPageSize    bool
	Scale                float64
	MarginTop            string
	MarginBottom         string
	MarginLeft           string
	MarginRight          string
	BaseURL              string
	ExternalAssetsPolicy string
}

PDFConfig holds PDF renderer settings.

type SMTPConfig

type SMTPConfig struct {
	Host          string
	Port          int
	From          string
	Username      string
	Password      string
	UseTLS        bool
	UseStartTLS   bool
	SkipTLSVerify bool
	AuthDisabled  bool
	PlainOnly     bool
}

SMTPConfig holds SMTP adapter settings for notifications.

type ServerConfig

type ServerConfig struct {
	Host string
	Port string
}

ServerConfig holds HTTP server settings.

type TemplateConfig

type TemplateConfig struct {
	Enabled      bool
	TemplateDir  string
	TemplateName string
	MaxRows      int
}

TemplateConfig holds template renderer settings.

Jump to

Keyboard shortcuts

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