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
Click to show internal directories.
Click to hide internal directories.