database

package
v0.0.0-...-5ce1543 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToPostgreSQLDatabase

func ConnectToPostgreSQLDatabase() (*sql.DB, error)

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 GetPostgreSQLDatabaseSingleton

func GetPostgreSQLDatabaseSingleton() (*sql.DB, error)

func GetRedisClientSingleton

func GetRedisClientSingleton() (*redis.Client, error)

func LogError

func LogError(details string) error

Log error details to redis database.

Returning possible error.

func LogEvent

func LogEvent(details string) error

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.

func LogWarning

func LogWarning(details string) error

Log warning details to redis database.

Returning possible error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL