Documentation ¶
Overview ¶
Package config package ensures fluxy service is configured properly
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDSNConfig ¶
func GetDSNConfig() string
GetDSNConfig constructs and returns a dsn using env config for database
func ServerConfig ¶
func ServerConfig() string
ServerConfig returns an appserver string with host and port
Types ¶
type Configuration ¶
type Configuration struct { Server ServerConfiguration Database DatabaseConfiguration }
Configuration for fluxy
type DatabaseConfiguration ¶
type DatabaseConfiguration struct { Driver string Dbname string Username string Password string Host string Port string LogMode bool }
DatabaseConfiguration is a config struct for postgres used by fluxy
type RedisConfiguration ¶
RedisConfiguration is a config struct for redis used by fluxy
func GetRedisConfig ¶
func GetRedisConfig() *RedisConfiguration
GetRedisConfig function returns the redis configuration
type ServerConfiguration ¶
type ServerConfiguration struct {
Port string
}
ServerConfiguration is a config struct for the fluxy server
Click to show internal directories.
Click to hide internal directories.