database

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DBConn is a pointer to gorm.DB
	DBConn *gorm.DB
	Cache  *cache.Cache
)
View Source
var RabbitMqChan *amqp.Channel
View Source
var RabbitMqConn *amqp.Connection

Functions

func Connect

func Connect() (err error)

Connect creates a connection to database

func CreateCache

func CreateCache() error

func LoadVar

func LoadVar()

func Rabbit

func Rabbit() (*amqp.Channel, error)

func SendMessageToChannel

func SendMessageToChannel(ch *amqp.Channel, body []byte, key string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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