configuration

package
v0.0.0-...-80a4a0d Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Application struct {
		Name        string `toml:"name"`
		Port        string `toml:"port"`
		PrintRoutes bool   `toml:"print_routes"`
	} `toml:"application"`

	Security struct {
		Key        string `toml:"key"`
		DebugMode  bool   `toml:"debug_mode"`
		Production bool   `toml:"production"`
	} `toml:"security"`

	Database struct {
		Enabled  bool   `toml:"enabled"`
		Host     string `toml:"host"`
		Port     string `toml:"port"`
		Username string `toml:"username"`
		Password string `toml:"password"`
		Name     string `toml:"name"`
	} `toml:"database"`

	Authentication struct {
		Enabled           bool   `toml:"enabled"`
		AuthenticationUrl string `toml:"authentication_url"`
	} `toml:"authentication"`

	Caching struct {
		Enabled bool `toml:"enabled"`
	} `toml:"caching"`
}

Configuration ---

This struct is used to store the configuration for the framework

func NewConfiguration

func NewConfiguration(fx.Lifecycle) (Configuration, error)

Jump to

Keyboard shortcuts

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