utils

package
v0.0.0-...-23d7152 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbConnect

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

func InitLogger

func InitLogger()

func Log

func Log(lvl, section, message string, params ...interface{})

func ReadFromRedis

func ReadFromRedis(ctx context.Context, key string, cache *redis.Client) (string, error)

func RedisConnect

func RedisConnect(ctx context.Context) (*redis.Client, error)

func SaveToRedis

func SaveToRedis(ctx context.Context, key string, data interface{}, exp int64, cache *redis.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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