utils

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

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RDB *redis.Client

RDB keeps track of the redis database client

Functions

func GenerateRandomBytes

func GenerateRandomBytes(n int) ([]byte, error)

GenerateRandomBytes securely generates random bytes.

func GetRDB

func GetRDB() *redis.Client

GetRDB returns the redis database client

func InitRDB

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

InitRDB starts the connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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