add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
18
internal/service/health_service.go
Normal file
18
internal/service/health_service.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"epic-ent/internal/domain/vo"
|
||||
"epic-ent/internal/repository"
|
||||
)
|
||||
|
||||
type HealthService struct {
|
||||
repo *repository.HealthRepository
|
||||
}
|
||||
|
||||
func NewHealthService(repo *repository.HealthRepository) *HealthService {
|
||||
return &HealthService{repo: repo}
|
||||
}
|
||||
|
||||
func (s *HealthService) Check() vo.HealthStatus {
|
||||
return s.repo.Check()
|
||||
}
|
||||
Reference in New Issue
Block a user