services

package
v0.0.0-...-1d69984 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoClient *mongo.Client

Functions

func Create

func Create(message LogMessageType) error

func MongoClientConnect

func MongoClientConnect() *mongo.Client

func Read

func Read(id string) error

Types

type AmqpConfirmationMessage

type AmqpConfirmationMessage struct {
	Email     string    `json:"email"`
	Token     string    `json:"token"`
	CreatedAt time.Time `json:"created_at"`
}

type AmqpForgotPasswordMessage

type AmqpForgotPasswordMessage struct {
	Email     string    `json:"email"`
	CreatedAt time.Time `json:"created_at"`
}

type LogMessageType

type LogMessageType struct {
	ID        primitive.ObjectID `bson:"_id,omitempty"`
	Message   string             `bson:"message,omitempty"`
	CreatedAt time.Time          `bson:"created_at,omitempty"`
}

type Mailer

type Mailer struct {
	To      []string
	Subject string
	// relative to the current directory
	TemplatePath string
	Variables    map[string]string
}

func (*Mailer) SendWithTemplate

func (m *Mailer) SendWithTemplate() error

type RabbitMQClient

type RabbitMQClient struct{}
var AmqpClient *RabbitMQClient

func (*RabbitMQClient) SendMessage

func (rmq *RabbitMQClient) SendMessage(qName string, message string)

Jump to

Keyboard shortcuts

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