config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: GPL-3.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 {
	HTTP       HTTPConfig
	Security   security.Config
	Database   db.Config
	Logging    logging.Config
	Validation ValidationConfig
}

func New added in v0.0.5

func New() Config

type HTTPConfig added in v0.0.7

type HTTPConfig struct {
	Host string
	Port int
}

type ValidationConfig added in v1.1.0

type ValidationConfig struct {
	EmailRegExp        string
	PasswordRegExps    []string // since Go's regex doesn't support backtracking.
	DisplayNameRegExps []string
}

Jump to

Keyboard shortcuts

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