Documentation
¶
Index ¶
- func ConnectToPostgreSQLDatabase() (*sql.DB, error)
- func ConnectToRedisDatabase() (*redis.Client, error)
- func GetPostgreSQLDatabaseSingleton() (*sql.DB, error)
- func GetRedisClientSingleton() (*redis.Client, error)
- func LogError(details string) error
- func LogEvent(details string) error
- func LogWarning(details string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToRedisDatabase ¶
func ConnectToRedisDatabase() (*redis.Client, error)
Create and connect to redis database.
Resource: How To Start Logging With Redis - https://betterstack.com/community/guides/logging/how-to-start-logging-with-redis/
Returning redis client and possible error.
func GetRedisClientSingleton ¶
func GetRedisClientSingleton() (*redis.Client, error)
func LogEvent ¶
Log information to redis database.
Resource: How to Get All Keys in Redis - https://chartio.com/resources/tutorials/how-to-get-all-keys-in-redis/
Returning possible error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.