package
Version:
v0.0.0-...-cfcd8fe
Opens a new window with list of versions in this module.
Published: May 8, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Servers map[string]Server `mapstructure:"servers"`
JWTSecretKey string `mapstructure:"jwt_secret_key"`
APIUrl string `mapstructure:"api_url"`
SwaggerPort int `mapstructure:"swagger_port"`
TestMode bool `mapstructure:"test_mode"`
MongoDB MongoDB `mapstructure:"mongodb"`
Redis Redis `mapstructure:"redis"`
RabbitMQ RabbitMQ `mapstructure:"rabbit_mq"`
}
type MongoDB struct {
Database string `mapstructure:"database"`
URI string `mapstructure:"uri"`
}
type RabbitMQ struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Host string `mapstructure:"host"`
Vhost string `mapstructure:"vhost"`
}
type Redis struct {
Address string `mapstructure:"address"`
Password string `mapstructure:"password"`
}
type Server struct {
Address string `mapstructure:"address,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.