mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
28 lines
553 B
Go
28 lines
553 B
Go
package healthcheck_attempt
|
|
|
|
import (
|
|
"databasus-backend/internal/features/databases"
|
|
"databasus-backend/internal/features/notifiers"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type HealthcheckAttemptSender interface {
|
|
SendNotification(
|
|
notifier *notifiers.Notifier,
|
|
title string,
|
|
message string,
|
|
)
|
|
}
|
|
|
|
type DatabaseService interface {
|
|
GetDatabaseByID(id uuid.UUID) (*databases.Database, error)
|
|
|
|
TestDatabaseConnectionDirect(database *databases.Database) error
|
|
|
|
SetHealthStatus(
|
|
databaseID uuid.UUID,
|
|
healthStatus *databases.HealthStatus,
|
|
) error
|
|
}
|