Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // RedisHost - The host of the Redis server. RedisHost string // RedisPort - The port of the Redis server. RedisPort uint32 // RedisUsername - The username of the Redis server. RedisUsername string // RedisPassword - The password of the Redis server. RedisPassword string // RedisPassword - The logical database inside the Redis server. RedisDatabase uint32 // RedisUseTLS - Whether to enable TLS for redis. RedisUseTLS bool // Port - The port on which application server will listen if deployed using main.go. Port uint32 }
Config - Configuration for the application.
type ConfigProvider ¶
type ConfigProvider interface { // Provide - Provides the configuration for the application. Provide() (Config, error) }
ConfigProvider - Interface for providing configuration for the application.
func NewConfigProvider ¶
func NewConfigProvider() ConfigProvider
NewConfigProvider - Constructs and returns a new ConfigProvider.
Click to show internal directories.
Click to hide internal directories.