config

package
v0.0.0-...-85a2ba7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 1 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 {
	PostgresDB
	RabbitMQ
	RMQPublisherConfig
}

func NewServiceConfig

func NewServiceConfig() (*Config, error)

type PostgresDB

type PostgresDB struct {
	Addr     string `mapstructure:"ORDERSVC_POSTGRESDB_ADDR"`
	Password string `mapstructure:"ORDERSVC_POSTGRESDB_PASSWORD"`
	User     string `mapstructure:"ORDERSVC_POSTGRESDB_USER"`
	Database string `mapstructure:"ORDERSVC_POSTGRESDB_DATABASE"`
}

type RMQPublisherConfig

type RMQPublisherConfig struct {
}

type RabbitMQ

type RabbitMQ struct {
	User     string `mapstructure:"ORDERSVC_RABBITMQ_USER"`
	Password string `mapstructure:"ORDERSVC_RABBITMQ_PASSWORD"`
	Host     string `mapstructure:"ORDERSVC_RABBITMQ_HOST"`
	Port     string `mapstructure:"ORDERSVC_RABBITMQ_PORT"`
}

Jump to

Keyboard shortcuts

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