config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 7 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 {
	Server     ServerConfig     `yaml:"server"`
	Validation ValidationConfig `yaml:"validation"`
	Ldap       LdapConfig       `yaml:"ldap"`
	Log        LogConfig        `yaml:"log"`
	UI         UIConfig         `yaml:"ui"`
}
var (
	Configuration Config
)

type LdapConfig

type LdapConfig struct {
	Host         string `yaml:"host"`
	UserDn       string `yaml:"userDn"`
	Password     string `yaml:"password"`
	BaseDn       string `yaml:"baseDn"`
	SearchFilter string `yaml:"searchFilter"`
	IgnoreTLS    bool   `yaml:"ignoreTLS"`
	TLSCert      string `yaml:"tlsCert"`
}

type LogConfig

type LogConfig struct {
	Level string `yaml:"level"`
}

type ServerConfig

type ServerConfig struct {
	Port string `yaml:"port"`
	Host string `yaml:"host"`
}

type UIConfig

type UIConfig struct {
	BackgroundImage string `yaml:"backgroundImage"`
	CustomCSS       string `yaml:"customCSS"`
	Favicon         string `yaml:"favicon"`
	Icon            string `yaml:"icon"`
}

type ValidationConfig

type ValidationConfig struct {
	UsernamePattern string `yaml:"username"`
	PasswordPattern string `yaml:"password"`
}

Jump to

Keyboard shortcuts

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