config

package
v0.0.0-...-1b39580 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Env            string `mapstructure:"env"`
	Debug          bool   `mapstructure:"debug"`
	RepositoryType string `mapstructure:"repository_type"`
}

type Config

type Config struct {
	ServiceName string               `mapstructure:"serviceName"`
	App         App                  `mapstructure:"app"`
	Logger      *logger.Config       `mapstructure:"logger"`
	GRPC        grpc.Config          `mapstructure:"grpc"`
	JWTToken    jwt.JWTConfig        `mapstructure:"jwt"`
	MySQL       sql.MySQL            `mapstructure:"mysql"`
	Mongo       mongodb.Config       `mapstructure:"mongo"`
	Redis       *redis.Config        `mapstructure:"redis"`
	Rabbit      rabbitmq.Config      `mapstructure:"rabbitmq"`
	Probes      probes.Config        `mapstructure:"probes"`
	Jaeger      tracing.JaegerConfig `mapstructure:"jaeger"`
	Mail        email.Config         `mapstructure:"email"`
}

func InitConfig

func InitConfig() (*Config, error)

Jump to

Keyboard shortcuts

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