Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHealthCheckUsecase ¶
func NewHealthCheckUsecase(h HealthCheckInterface.IHealthCheckRepository) HealthCheckInterface.IHealthCheckUsecase
Define an exported function. Call this in main.go and bind your parameters to the struct
Types ¶
type HealthCheckUsecase ¶
type HealthCheckUsecase struct {
HealthCheckRepository HealthCheckInterface.IHealthCheckRepository
}
Define your usecase struct You can make the struct with repository or another usecase To access the repository or the usecase you need an interface
func (*HealthCheckUsecase) GetDBTimestamp ¶
func (a *HealthCheckUsecase) GetDBTimestamp() models.HealthCheck
Click to show internal directories.
Click to hide internal directories.