utils

package
v0.0.0-...-b1bf2c7 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

func InitializeEmailService

func InitializeEmailService()

func InitializeWebsocketService

func InitializeWebsocketService()

func RedisConnect

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

Types

type Logger

type Logger struct {
	*logrus.Entry
}

func NewLogger

func NewLogger(service string) *Logger

func (Logger) WithDBError

func (logger Logger) WithDBError(errType Type, err *gorm.DB) Logger

func (Logger) WithError

func (logger Logger) WithError(errType Type, err error) Logger

func (Logger) WithToken

func (logger Logger) WithToken(requestToken string) Logger

type Type

type Type string
const (
	Application Type = "Aplication"
	ADB         Type = "DB"
	WebSocket   Type = "Websocket"
	Mail        Type = "Mail"
)

Jump to

Keyboard shortcuts

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