Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { ID int64 `json:"id" gorm:"primary_key"` Name string `json:"name" gorm:"column:name" description:"节点名称"` Status string `json:"status" gorm:"column:status" description:"节点状态"` CreatedAt time.Time `json:"create_at" gorm:"column:create_at" description:"添加时间"` UpdateAt time.Time `json:"update_at" gorm:"column:update_at" description:"修改时间"` InternalIP string `json:"internal_ip" gorm:"column:internal_ip" description:"内网IP"` ExternalIP string `json:"external_ip" gorm:"column:external_ip" description:"外网IP"` Info string `json:"info" gorm:"column:info" description:"节点信息,json格式"` Containers string `json:"containers" gorm:"column:containers" description:"容器信息,json格式"` }
Node 结构体用于表示 node 表的行数据
type NodeDao ¶
func NewNodeDao ¶
Click to show internal directories.
Click to hide internal directories.