config

package
v0.0.0-...-8ec9037 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: BSD-3-Clause Imports: 0 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 {
	ServerConfig
	JsonSchemaConfig

	ApplicationName string `env:"APPLICATION_NAME"`
	AppEnv          string `env:"APP_ENV"`
}

type JsonSchemaConfig

type JsonSchemaConfig struct {
	SchemaPath string `env:"BASE_JSON_SCHEMA_PATH"`
}

type ServerConfig

type ServerConfig struct {
	ServerHost         string `env:"SERVER_HOST"`
	ServerPort         string `env:"SERVER_PORT"`
	ServerWriteTimeout int    `env:"SERVER_WRITE_TIMEOUT"`
	ServerReadTimeout  int    `env:"SERVER_READ_TIMEOUT"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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