config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 5 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 {
	StartTime   time.Time // StartTime is the timestamp when the application started.
	ServiceName string    // ServiceName is the name of the service.

	GrpcPort    string `mapstructure:"GRPC_PORT"`    // GrpcPort is the port number for the gRPC server.
	GatewayPort string `mapstructure:"GATEWAY_PORT"` // RestPort is the port number for the REST server.

	Mail     email.Config // Mail holds the configuration for mail-related settings.
	Database db.Config    // DBConfig holds the configuration for the database.
}

Config represents the application configuration.

func LoadConfigs

func LoadConfigs(path string, name string) (config Config, err error)

LoadConfigs loads the configuration from the specified YAML file.

Jump to

Keyboard shortcuts

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