Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SrvDb *gorm.DB
Functions ¶
This section is empty.
Types ¶
type ServiceEntity ¶
type ServiceEntity struct { base.IdTimeStampsModel Name string `gorm:"column:name" json:"Name" form:"Name" comment:"Name"` Host string `gorm:"column:host" json:"Host" form:"Host" comment:"Host"` Port int `gorm:"column:port;default:0" json:"Port" form:"Port" comment:"Port"` Admin string `gorm:"column:admin" json:"Admin" form:"Admin" comment:"Admin"` ExePath string `gorm:"column:exe_path" json:"ExePath" form:"ExePath" comment:"ExePath"` Args string `gorm:"column:args" json:"Args" form:"Args" comment:"Args"` SystemdName string `gorm:"column:systemd_name" json:"SystemdName" form:"SystemdName" comment:"SystemdName"` SystemdStatus string `gorm:"column:systemd_status" json:"SystemdStatus" form:"SystemdStatus" comment:"SystemdStatus"` Status int `gorm:"column:status" json:"Status" form:"Status" comment:"状态"` // LastSeen base.ISO8601Time `gorm:"column:last_seen" json:"LastSeen" form:"LastSeen" comment:"LastSeen"` Mode string `gorm:"column:mode" json:"Mode" form:"Mode" comment:"Mode"` Acl bool `gorm:"column:acl" json:"Acl" form:"Acl" comment:"Acl"` Acs bool `gorm:"column:acs" json:"Acs" form:"Acs" comment:"Acs"` Log bool `gorm:"column:log" json:"Log" form:"Log" comment:"Log"` Cpu int `gorm:"column:cpu" json:"Cpu" form:"Cpu" comment:"Cpu"` }
func (ServiceEntity) TableName ¶
func (c ServiceEntity) TableName() string
Click to show internal directories.
Click to hide internal directories.