config

package
v0.0.0-...-adf9052 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 1 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 {
	App struct {
		Version string
		Env     Environment
		Debug   bool
	}
	Server struct {
		Port           int
		ReadTimeout    time.Duration
		WriteTimeout   time.Duration
		IdleTimeout    time.Duration
		ShutdownPeriod time.Duration
	}
	Database struct {
		Dsn          string
		AutoMigrate  bool
		MaxOpenConns int
		MaxIdleConns int
		ConnMaxLife  time.Duration
		ConnMaxIdle  time.Duration
	}
}

type Environment

type Environment int
const (
	DEVELOPMENT Environment = iota + 1
	STAGING
	PRODUCTION
)

func (Environment) String

func (e Environment) String() string

Jump to

Keyboard shortcuts

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