config

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MPL-2.0 Imports: 6 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
	TLSCert          string
	TLSKey           string
	JWTSecret        string
	SessionTimeout   int // minutes
	IPWhitelistFile  string
	AuditLogFile     string
	RequiredGroup    string
	BlockRootLogin   bool
	MaxLoginAttempts int
	LockoutDuration  int // minutes
}

Config holds the application configuration

func Load

func Load(path string) (*Config, error)

Load reads configuration from file

func (*Config) Save

func (c *Config) Save(path string) error

Save writes configuration to file

Jump to

Keyboard shortcuts

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