Files
PulseGate-GUI/internal/models/models.go
Pepe44DEV dcafc1e7c1 Project Initialisation
added Project files
2026-05-03 21:26:10 +02:00

35 lines
1.1 KiB
Go

package models
type TerminalSettings struct {
Term string `json:"term" yaml:"term"`
EnableKittyFix bool `json:"enable_kitty_fix" yaml:"enable_kitty_fix"`
}
type Settings struct {
Theme string `json:"theme" yaml:"theme"`
Terminal TerminalSettings `json:"terminal" yaml:"terminal"`
}
type Server struct {
Name string `json:"name" yaml:"name"`
Host string `json:"host" yaml:"host"`
User string `json:"user" yaml:"user"`
Port int `json:"port" yaml:"port"`
Group string `json:"group" yaml:"group"`
Auth string `json:"auth" yaml:"auth"`
Key string `json:"key" yaml:"key"`
PasswordID string `json:"password_id" yaml:"password_id"`
KittyFix bool `json:"kitty_fix" yaml:"kitty_fix"`
}
type QuickCommand struct {
Name string `json:"name" yaml:"name"`
Command string `json:"command" yaml:"command"`
}
type AppConfig struct {
Settings Settings `json:"settings" yaml:"settings"`
Servers []Server `json:"servers" yaml:"servers"`
QuickCommands []QuickCommand `json:"quick_commands" yaml:"quick_commands"`
}