config

package
v0.0.0-...-c3afde3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package config provides connection with environment configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName        string `env:"SERVICE_NAME,default=grpc-gateway"`
	AppEnv             string `env:"APP_ENV,default=development"`
	Port               string `env:"PORT,default=8000"`
	UserServiceAddress string `env:"USER_SERVICE_ADDRESS,required"`
	AuthServiceAddress string `env:"AUTH_SERVICE_ADDRESS,required"`
	Tracer             trace.Config
}

Config holds configuration for the project.

func NewConfig

func NewConfig(env string) (*Config, error)

NewConfig creates an instance of Config. It needs the path of the env file to be used.

Jump to

Keyboard shortcuts

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