factories

package
v0.0.0-...-31ddaea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies struct {
	Config            *config.NotificationConfig
	MongoDB           *mongo.Database
	GrpcClient        *grpc_client.ServerClient
	MongoFactory      *MongoFactory
	GrpcClientFactory *GrpcClientFactory
	FirebaseGoogle    *services.FirebaseGoogleService
	Mailgun           *services.MailgunService
}

func GetDependencies

func GetDependencies() *Dependencies

func InitializeDependencies

func InitializeDependencies() *Dependencies

func (*Dependencies) Close

func (x *Dependencies) Close()

type GrpcClientFactory

type GrpcClientFactory struct {
	UserRepo repositories.UserRepository
}

func NewGrpcFactory

func NewGrpcFactory(client *grpc_client.ServerClient) *GrpcClientFactory

type MongoFactory

type MongoFactory struct {
	TemplateRepo     repositories.TemplateRepository
	NotificationRepo repositories.NotificationRepository
	DeviceTokenRepo  repositories.DeviceTokenRepository
}

func NewMongoFactory

func NewMongoFactory(db *mongo.Database) *MongoFactory

Jump to

Keyboard shortcuts

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