implment ping server

This commit is contained in:
Adem Baccara
2025-08-26 18:08:13 +01:00
parent fea1fb5764
commit 9a6b8f4702
9 changed files with 165 additions and 47 deletions
+6 -1
View File
@@ -14,7 +14,11 @@
package ports
import "github.com/Adembc/lazyssh/internal/core/domain"
import (
"time"
"github.com/Adembc/lazyssh/internal/core/domain"
)
type ServerService interface {
ListServers(query string) ([]domain.Server, error)
@@ -23,4 +27,5 @@ type ServerService interface {
DeleteServer(server domain.Server) error
SetPinned(alias string, pinned bool) error
SSH(alias string) error
Ping(server domain.Server) (bool, time.Duration, error)
}