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