mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 17:59:28 +08:00
change hub file structure
This commit is contained in:
17
internal/entities/server/server.go
Normal file
17
internal/entities/server/server.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package server
|
||||
|
||||
import "golang.org/x/crypto/ssh"
|
||||
|
||||
type Server struct {
|
||||
Host string
|
||||
Port string
|
||||
Status string
|
||||
Client *ssh.Client
|
||||
}
|
||||
|
||||
func NewServer(host, port string) *Server {
|
||||
return &Server{
|
||||
Host: host,
|
||||
Port: port,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user