Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthRepo ¶
type HealthRepo interface { IsBackendAvailable(ctx context.Context) (*pb.GetReadyzResponse, error) IsRelationsAvailable(ctx context.Context) (*pb.GetReadyzResponse, error) }
type HealthUsecase ¶
type HealthUsecase struct {
// contains filtered or unexported fields
}
HealthUsecase is a Health usecase.
func New ¶
func New(repo HealthRepo, logger log.Logger, disablePersistence bool) *HealthUsecase
New creates a new a Health usecase.
func (*HealthUsecase) IsBackendAvailable ¶
func (rc *HealthUsecase) IsBackendAvailable(ctx context.Context) (*pb.GetReadyzResponse, error)
Click to show internal directories.
Click to hide internal directories.