Documentation ¶
Index ¶
- func NewDatabaseConfig(config Config) db.Config
- func NewMessageBrokerConfig(config Config) meesage_broker.Config
- type Config
- type SampleConfig
- func (s SampleConfig) GetAmqpAddress() string
- func (s SampleConfig) GetDatabaseDsn() string
- func (s SampleConfig) GetDbDriver() string
- func (s SampleConfig) GetRetryAttemptsConnect() uint
- func (s SampleConfig) GetRetryDelayConnect() time.Duration
- func (s SampleConfig) GetToDoServiceAddress() string
- func (s SampleConfig) GetUserServiceAddress() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabaseConfig ¶
func NewMessageBrokerConfig ¶
func NewMessageBrokerConfig(config Config) meesage_broker.Config
Types ¶
type Config ¶
type SampleConfig ¶
type SampleConfig struct { AmqpAddress string `mapstructure:"AMQP_ADDRESS"` DatabaseDsn string `mapstructure:"DATABASE_DSN"` DBDriver string `mapstructure:"DATABASE_DRIVER"` UserServiceAddress string `mapstructure:"USER_SERVICE_ADDRESS"` ToDoServiceAddress string `mapstructure:"TODO_SERVICE_ADDRESS"` RetryDelayConnect time.Duration `mapstructure:"RETRY_DELAY_CONNECT"` RetryAttemptsConnect uint `mapstructure:"RETRY_ATTEMPTS_CONNECT" ` }
func (SampleConfig) GetAmqpAddress ¶
func (s SampleConfig) GetAmqpAddress() string
func (SampleConfig) GetDatabaseDsn ¶
func (s SampleConfig) GetDatabaseDsn() string
func (SampleConfig) GetDbDriver ¶
func (s SampleConfig) GetDbDriver() string
func (SampleConfig) GetRetryAttemptsConnect ¶
func (s SampleConfig) GetRetryAttemptsConnect() uint
func (SampleConfig) GetRetryDelayConnect ¶
func (s SampleConfig) GetRetryDelayConnect() time.Duration
func (SampleConfig) GetToDoServiceAddress ¶
func (s SampleConfig) GetToDoServiceAddress() string
func (SampleConfig) GetUserServiceAddress ¶
func (s SampleConfig) GetUserServiceAddress() string
Click to show internal directories.
Click to hide internal directories.