database

package
v0.0.0-...-4811c58 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB
View Source
var SRV *sheets.Service

Functions

func InitDB

func InitDB(dbConfig config.DatabaseConfig)

func InitRedis

func InitRedis(redisConfig config.RedisConfig) error

func InitialiseGoogleSheetsClient

func InitialiseGoogleSheetsClient() (*sheets.Service, error)

Types

type RedisRepository

type RedisRepository struct {
	// contains filtered or unexported fields
}
var RedisClient *RedisRepository

func (*RedisRepository) Close

func (r *RedisRepository) Close() error

func (*RedisRepository) Delete

func (r *RedisRepository) Delete(key string) error

func (*RedisRepository) Get

func (r *RedisRepository) Get(key string) (string, error)

func (*RedisRepository) Set

func (r *RedisRepository) Set(key, value string, time time.Duration) error

Jump to

Keyboard shortcuts

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