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: 10 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.UserConfig
	MongoDB           *mongo.Database
	GrpcClient        *grpc_client.ServerClient
	RabbitMQConn      *rabbitmq.RabbitMQ
	MongoFactory      *MongoFactory
	GrpcClientFactory *GrpcClientFactory
}

func GetDependencies

func GetDependencies() *Dependencies

func InitializeDependencies

func InitializeDependencies() *Dependencies

func (*Dependencies) Close

func (x *Dependencies) Close()

type GrpcClientFactory

type GrpcClientFactory struct {
	AuthRepo    repositories.AuthRepository
	StorageRepo repositories.StorageRepository
}

func NewGrpcFactory

func NewGrpcFactory(client *grpc_client.ServerClient) *GrpcClientFactory

type MongoFactory

type MongoFactory struct {
	UserRepo repositories.UserRepository
}

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