app

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func Main

func Main(cfg Config) error

Types

type Config

type Config struct {
	// Base
	ListenPort int    `env:"LISTEN_PORT" envDefault:"8080"`
	ListenAddr string `env:"LISTEN_ADDR" envDefault:"0.0.0.0"`
	LogLevel   string `env:"LOG_LEVEL" envDefault:"INFO"`

	EnableHealth bool `env:"ENABLE_HEALTH" envDefault:"true"`

	// Data
	DataFolder string `env:"DATA_FOLDER" envDefault:"data"`
	SqliteDSN  string `env:"SQLITE_DSN"`
}

func LoadConfig

func LoadConfig() (Config, error)

Jump to

Keyboard shortcuts

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