domain

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: GPL-2.0 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 {
	Host          string       `toml:"host" mapstructure:"host"`
	Port          int          `toml:"port" mapstructure:"port"`
	BaseURL       string       `toml:"baseUrl" mapstructure:"baseUrl"`
	SessionSecret string       `toml:"sessionSecret" mapstructure:"sessionSecret"`
	LogLevel      string       `toml:"logLevel" mapstructure:"logLevel"`
	LogPath       string       `toml:"logPath" mapstructure:"logPath"`
	DataDir       string       `toml:"dataDir" mapstructure:"dataDir"`
	PprofEnabled  bool         `toml:"pprofEnabled" mapstructure:"pprofEnabled"`
	Polar         PolarConfig  `toml:"polar" mapstructure:"polar"`
	HTTPTimeouts  HTTPTimeouts `toml:"httpTimeouts" mapstructure:"httpTimeouts"`
}

Config represents the application configuration

type HTTPTimeouts

type HTTPTimeouts struct {
	ReadTimeout  int `toml:"readTimeout" mapstructure:"readTimeout"`   // seconds
	WriteTimeout int `toml:"writeTimeout" mapstructure:"writeTimeout"` // seconds
	IdleTimeout  int `toml:"idleTimeout" mapstructure:"idleTimeout"`   // seconds
}

HTTPTimeouts represents HTTP server timeout configuration

type PolarConfig

type PolarConfig struct {
	LicenseValidationInterval string `toml:"licenseValidationInterval" mapstructure:"licenseValidationInterval"`
	OfflineGracePeriod        string `toml:"offlineGracePeriod" mapstructure:"offlineGracePeriod"`
}

PolarConfig represents user-configurable Polar settings

Jump to

Keyboard shortcuts

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