config

package
v0.0.0-...-4a34f05 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 2 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 {
	// Application environment LOCAL, TEST, PRODUCTION & etc
	AppEnv string
	// Application name
	AppName string
	// Application secret key
	AppSecret string
	// Enable application debug mode
	AppDebug bool

	// Database Driver
	DBDriver   string
	DBProtocol string
	DBHost     string
	DBPort     string
	DBName     string
	DBUser     string
	DBPass     string
	DBURL      string

	// Write log into file. You can disable it by setting `LogFile` to empty string
	LogFile string
	// Show the log by level, available value is INFO, WARNING and ERROR.
	// If `AppDebug` is true, the log level will automatically set to INFO
	LogLevel string

	// HTTP port default is 8080
	HTTPPort string
	// Enable H2C support
	HTTPH2C bool
}

func Default

func Default() Config

Jump to

Keyboard shortcuts

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