config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProduction

func IsProduction() bool

func Load

func Load()

Types

type AppConfig

type AppConfig struct {
	Env string `default:"production"`
}

type Configuration

type Configuration struct {
	AppConfig
	ServerConfig
	ContainerConfig
}

func Get

func Get() Configuration

type ContainerConfig added in v1.1.0

type ContainerConfig struct {
	Port string `default:"8080"`
}

type ServerConfig

type ServerConfig struct {
	MaxBodySize  int `default:"10485760" split_words:"true"`
	ReadTimeout  int `default:"10" split_words:"true"`  // seconds
	WriteTimeout int `default:"10" split_words:"true"`  // seconds
	IdleTimeout  int `default:"620" split_words:"true"` // seconds
}

Jump to

Keyboard shortcuts

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