config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 2 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 {
	Port             int
	Listen           string
	Theme            string
	PlantUMLServer   string
	Verbose          bool
	AuthToken        string
	AuthCookieMaxAge int
	AccessLog        string
	AccessLogMaxSize int
	AccessLogMaxBack int
	AccessLogMaxAge  int
}

func Parse

func Parse() *Config

func (*Config) IsRemoteMode

func (c *Config) IsRemoteMode() bool

IsRemoteMode returns true when the server is configured to accept connections from outside localhost.

func (*Config) Validate

func (c *Config) Validate() error

Validate checks the configuration for consistency. Returns an error if the configuration is invalid.

Jump to

Keyboard shortcuts

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