model

package
v1.1.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL