work/ssh.go
Patryk Hegenberg d8743e54c1
Some checks are pending
Go CI Pipeline / ci (push) Waiting to run
Release Builds / GoReleaser build (push) Successful in 1m4s
refactor: use slog instead of log
2025-06-11 22:41:48 +02:00

19 lines
269 B
Go

package main
import (
"log/slog"
"golang.org/x/crypto/ssh"
)
type SSHConnection struct {
client *ssh.Client
}
func (s *SSHConnection) Close() error {
if s.client != nil {
slog.Debug("Closing SSH client connection.")
return s.client.Close()
}
return nil
}