config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCfg

type AppCfg struct {
	ServerAddr string `env:"SERVER_ADDR,required"`
}

AppCfg is a configuration for the application.

type Config

type Config struct {
	Log *cfg.Logger `env:",prefix=LOG_,required"`
	App AppCfg      `env:",prefix=APP_,required"`
}

Config is a configuration for the service.

func NewConfig

func NewConfig(ctx context.Context) (*Config, error)

NewConfig returns new Config.

Jump to

Keyboard shortcuts

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