config

package
v0.0.0-...-84c5db4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMicroserviceName

func GetMicroserviceName(serviceName string) string

Types

type Config

type Config struct {
	ServiceName  string                            `mapstructure:"serviceName"`
	Logger       *logger.LoggerConfig              `mapstructure:"logger"`
	Rabbitmq     *rabbitmq.RabbitMQConfig          `mapstructure:"rabbitmq"`
	Echo         *config.EchoConfig                `mapstructure:"echo"`
	Grpc         *grpc.GrpcConfig                  `mapstructure:"grpc"`
	GormPostgres *gorm_postgres.GormPostgresConfig `mapstructure:"gormPostgres"`
	Jaeger       *open_telemetry.JaegerConfig      `mapstructure:"jaeger"`
}

type Context

type Context struct {
	Timeout int `mapstructure:"timeout"`
}

Jump to

Keyboard shortcuts

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