Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Options( fx.Provide(NewAppConfig), )
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Assets *AssetsConfig Database *DatabaseConfig HTTPServer *HTTPServerConfig RabbitMQ *RabbitMQConfig }
func NewAppConfig ¶
func NewAppConfig(assets *AssetsConfig, env env.Env) *AppConfig
type AssetsConfig ¶
func NewAssetsConfig ¶
type DatabaseConfig ¶
type DatabaseConfig struct { Name string User string Password string Host string Port string MigrationDirectory string Driver string // TODO, validate supported dialects }
func NewDatabaseConfig ¶
type HTTPServerConfig ¶
type HTTPServerConfig struct {
Port string
}
func NewHTTPServerConfig ¶
func NewHTTPServerConfig(port string) *HTTPServerConfig
type RabbitMQConfig ¶
func NewRabbitMQConfig ¶
func NewRabbitMQConfig(name string, password string, host string) *RabbitMQConfig
func (RabbitMQConfig) ToDsn ¶
func (r RabbitMQConfig) ToDsn() string
Click to show internal directories.
Click to hide internal directories.