config

package
v0.0.0-...-20fe6b4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 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 {
	HTTPServerPort int `envconfig:"HTTP_SERVER_PORT" default:"8080"`
}

Config stores service configuration value

func New

func New() (*Config, error)

New initializes new config by loading the value from environment variables.

Jump to

Keyboard shortcuts

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