fix fieldalignment

This commit is contained in:
Pavel 2022-12-19 10:11:11 +03:00
parent 1b39ec70a3
commit 0e3710add7
2 changed files with 3 additions and 3 deletions

View File

@ -93,8 +93,8 @@ type HTTPServerConfig struct {
// ZabbixConfig contains information about Zabbix connection.
type ZabbixConfig struct {
ServerHost string `yaml:"server_host"`
ServerPort int `yaml:"server_port"`
Host string `yaml:"host"`
ServerPort int `yaml:"server_port"`
Interval uint64 `yaml:"interval"`
}

View File

@ -11,9 +11,9 @@ type Connection struct {
GateURL string `gorm:"column:mg_url; type:varchar(255); not null;" json:"mgUrl,omitempty" binding:"max=255"`
GateToken string `gorm:"column:mg_token; type:varchar(100); not null; unique" json:"mgToken,omitempty" binding:"max=100"` // nolint:lll
ClientID string `gorm:"column:client_id; type:varchar(70); not null; unique" json:"clientId,omitempty"`
Lang string `gorm:"column:lang; type:varchar(2)" json:"lang,omitempty" binding:"max=2"`
PublicURL string `gorm:"column:public_url; type:varchar(255);" json:"publicUrl,omitempty" binding:"max=255"`
Accounts []Account `gorm:"foreignkey:ConnectionID" json:"accounts"`
ID int `gorm:"primary_key" json:"id"`
Active bool `json:"active,omitempty"`
Lang string `gorm:"column:lang; type:varchar(2)" json:"lang,omitempty" binding:"max=2"`
PublicURL string `gorm:"column:public_url; type:varchar(255);" json:"publicUrl,omitempty" binding:"max=255"`
}