settings

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Command       string
	Args          []string
	ShowVersion   bool
	SessionsCheck bool
	ImportPath    string

	Host             string
	Port             int
	AuthPath         string
	MaxRetries       int
	CooldownMins     int
	PreferPro        bool
	Verbose          bool
	MaxLoginAttempts int
	LoginAttemptMins int
	LoginKeepMins    int
}

func FromAppConfig

func FromAppConfig(cfg *config.AppConfig) (*Settings, error)

FromAppConfig validates cfg and returns Settings.

func (*Settings) LoginAttemptTimeout added in v1.4.0

func (s *Settings) LoginAttemptTimeout() time.Duration

LoginAttemptTimeout is how long an unanswered Control API login attempt stays open.

func (*Settings) LoginKeepDuration added in v1.4.0

func (s *Settings) LoginKeepDuration() time.Duration

LoginKeepDuration is how long a resolved login attempt stays listed.

Jump to

Keyboard shortcuts

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