Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepositoryRegistry ¶
func NewRepositoryRegistry(db *mongostore.Mongo) registry.RepositoryRegistry
func NewServiceRegistry ¶
func NewServiceRegistry(cfg *config.MainConfig, repository registry.RepositoryRegistry) registry.ServiceRegistry
Types ¶
type RepositoryRegistry ¶
type RepositoryRegistry struct {
// contains filtered or unexported fields
}
func (*RepositoryRegistry) GetSwipeRepository ¶
func (rr *RepositoryRegistry) GetSwipeRepository() portrepository.SwipeRepository
func (*RepositoryRegistry) GetUserRepository ¶
func (rr *RepositoryRegistry) GetUserRepository() portrepository.UserRepository
func (*RepositoryRegistry) WithTransaction ¶
func (rr *RepositoryRegistry) WithTransaction(ctx context.Context, fn func(sessCtx mongo.SessionContext) (interface{}, error)) error
type ServiceRegistry ¶
type ServiceRegistry struct {
// contains filtered or unexported fields
}
func (*ServiceRegistry) GetPurchaseService ¶
func (sr *ServiceRegistry) GetPurchaseService() portservice.PurchaseService
func (*ServiceRegistry) GetSwipeService ¶
func (sr *ServiceRegistry) GetSwipeService() portservice.SwipeService
func (*ServiceRegistry) GetUserService ¶
func (sr *ServiceRegistry) GetUserService() portservice.UserService
Click to show internal directories.
Click to hide internal directories.