utils

package
v0.0.0-...-29610b7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMail

func InitMail() *gomail.Dialer

func InitUnleash

func InitUnleash(cfg *config.Config)

Types

type Apm

type Apm struct {
	NewRelic *newrelic.Application
}

func NewApm

func NewApm(cfg *config.Config) *Apm

type Conn

type Conn struct {
	Mysql   *sql.DB
	Elastic *elasticsearch.Client
	AWS     *session.Session
	Redis   *redis.Client
}

func NewDBConn

func NewDBConn(cfg *config.Config) *Conn

type Logrus

type Logrus struct {
	// contains filtered or unexported fields
}

func NewLogrus

func NewLogrus() *Logrus

func (*Logrus) Error

func (l *Logrus) Error(logsField *_goLog.LoggerData, e error)

func (*Logrus) Info

func (l *Logrus) Info(logsField *_goLog.LoggerData, message string)

Jump to

Keyboard shortcuts

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