Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { ApiServer ApiServer `mapstructure:",squash"` Database Database `mapstructure:",squash"` MessageBroker MessageBroker `mapstructure:",squash"` FileServer FileServer `mapstructure:",squash"` }
func LoadConfig ¶
func LoadConfig(path string) *Configuration
type Database ¶
type Database struct { DbUri string `mapstructure:"MONGODB_URI"` Host string `mapstructure:"MONGODB_SERVICE_HOST"` Port string `mapstructure:"MONGODB_SERVICE_PORT"` Username string `mapstructure:"MONGODB_USERNAME"` Password string `mapstructure:"MONGODB_PASSWORD"` Name string `mapstructure:"MONGODB_DATABASE"` Timeout int `mapstructure:"MONGODB_TIMEOUT"` }
func (Database) GetDatabaseUri ¶
type FileServer ¶
type FileServer struct { Host string `mapstructure:"GOSTY_FILESERVER_SERVICE_HOST"` Port string `mapstructure:"GOSTY_FILESERVER_SERVICE_PORT"` }
func (FileServer) GetFileServerUri ¶
func (f FileServer) GetFileServerUri() string
type MessageBroker ¶
type MessageBroker struct { MbUri string `mapstructure:"RABBITMQ_URI"` Host string `mapstructure:"RABBIT_RABBITMQ_SERVICE_HOST"` Port string `mapstructure:"RABBIT_RABBITMQ_SERVICE_PORT"` Username string `mapstructure:"RABBITMQ_USERNAME"` Password string `mapstructure:"RABBITMQ_PASSWORD"` }
func (MessageBroker) GetMessageBrokerUri ¶
func (m MessageBroker) GetMessageBrokerUri() string
Click to show internal directories.
Click to hide internal directories.