EntitlementService creates a new instance of services.EntitlementService
()
| 849 | |
| 850 | // EntitlementService creates a new instance of services.EntitlementService |
| 851 | func (container *Container) EntitlementService() *services.EntitlementService { |
| 852 | container.logger.Debug("creating services.EntitlementService") |
| 853 | return services.NewEntitlementService( |
| 854 | container.Logger(), |
| 855 | container.Tracer(), |
| 856 | os.Getenv("ENTITLEMENT_ENABLED") == "true", |
| 857 | container.UserRepository(), |
| 858 | ) |
| 859 | } |
| 860 | |
| 861 | // DiscordRepository creates a new instance of repositories.DiscordRepository |
| 862 | func (container *Container) DiscordRepository() (repository repositories.DiscordRepository) { |
no test coverage detected