add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
15
internal/repository/health_repo.go
Normal file
15
internal/repository/health_repo.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"epic-ent/internal/domain/vo"
|
||||
)
|
||||
|
||||
type HealthRepository struct{}
|
||||
|
||||
func NewHealthRepository() *HealthRepository {
|
||||
return &HealthRepository{}
|
||||
}
|
||||
|
||||
func (r *HealthRepository) Check() vo.HealthStatus {
|
||||
return vo.HealthStatus{Status: "ok"}
|
||||
}
|
||||
9
internal/repository/module.go
Normal file
9
internal/repository/module.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package repository
|
||||
|
||||
import "go.uber.org/fx"
|
||||
|
||||
var Module = fx.Options(
|
||||
fx.Provide(
|
||||
NewHealthRepository,
|
||||
),
|
||||
)
|
||||
Reference in New Issue
Block a user