Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type City1 ¶
type City1 struct { Id int16 `gorm:"primary_key:true;column:ct_id" json:"id"` Name string `gorm:"column:ct_name" json:"name"` PostCode string `gorm:"column:ct_post_code" json:"post_code"` ProvinceId int16 `gorm:"primary_key:true;column:pv_id" json:"province.id"` ProvinceName string `gorm:"column:pv_name" json:"province.name"` }
City represents the data of city1 in RDB
type City2 ¶
type City2 struct { Id int16 `gorm:"primary_key:true;column:ct_id" json:"id"` Name string `gorm:"column:ct_name" json:"name"` PostCode string `gorm:"column:ct_post_code" json:"post_code"` }
City represents the data of city1 in RDB
type CityOfPingtaskView ¶
type CityOfPingtaskView struct { Id int `gorm:"primary_key:true;column:ct_id" json:"id"` Name string `gorm:"column:ct_name" json:"name"` }
CCityOfPingtaskViewity represents the data of city in the PingtaskView
func (CityOfPingtaskView) TableName ¶
func (CityOfPingtaskView) TableName() string
type GroupTag ¶
type GroupTag struct { Id int32 `gorm:"primary_key:true;column:gt_id" json:"id" db:"gt_id"` Name string `gorm:"column:gt_name" json:"name" db:"gt_name"` }
type GroupTagOfPingtaskView ¶
type GroupTagOfPingtaskView struct { Id int `gorm:"primary_key:true;column:gt_id" json:"id" db:"gt_id"` Name string `gorm:"column:gt_name" json:"name" db:"gt_name"` }
func (GroupTagOfPingtaskView) TableName ¶
func (GroupTagOfPingtaskView) TableName() string
type Isp ¶
type Isp struct { Id int16 `gorm:"primary_key:true;column:isp_id" json:"id"` Name string `gorm:"column:isp_name" json:"name"` Acronym string `gorm:"column:isp_acronym" json:"acronym"` }
Isp represents data of ISP in RDB
type IspOfPingtaskView ¶
type IspOfPingtaskView struct { Id int `gorm:"primary_key:true;column:isp_id" json:"id"` Name string `gorm:"column:isp_name" json:"name"` }
Isp represents data of ISP in RDB
func (IspOfPingtaskView) TableName ¶
func (IspOfPingtaskView) TableName() string
type NameTagOfPingtaskView ¶
type NameTagOfPingtaskView struct { Id int `json:"id" db:"nt_id"` Value string `json:"value" db:"nt_value"` }
func (NameTagOfPingtaskView) TableName ¶
func (NameTagOfPingtaskView) TableName() string
type Province ¶
type Province struct { Id int16 `gorm:"primary_key:true;column:pv_id" json:"id"` Name string `gorm:"column:pv_name" json:"name"` }
Province represents the data of province in RDB
type ProvinceOfPingtaskView ¶
type ProvinceOfPingtaskView struct { Id int `gorm:"primary_key:true;column:pv_id" json:"id"` Name string `gorm:"column:pv_name" json:"name"` }
Province represents the data of province in RDB
func (ProvinceOfPingtaskView) TableName ¶
func (ProvinceOfPingtaskView) TableName() string
type Query ¶
type Query struct { Uuid db.DbUuid `db:"qr_uuid"` NamedId string `db:"qr_named_id"` Content []byte `db:"qr_content"` Md5Content db.Bytes16 `db:"qr_md5_content"` CreationTime time.Time `db:"qr_time_creation"` AccessTime time.Time `db:"qr_time_access"` }
Represents the query object
func (*Query) ToJsonOfQueryId ¶
type SyncCmdbJobInfo ¶
type SyncCmdbJobInfo struct { StartTime ojson.JsonTime `json:"start_time"` EndTime ojson.JsonTime `json:"end_time"` Timeout int `json:"timeout"` Status TaskStatus `json:"status"` }
func (*SyncCmdbJobInfo) IsTimeout ¶
func (info *SyncCmdbJobInfo) IsTimeout() bool
type TaskStatus ¶
type TaskStatus byte
const ( JobDone TaskStatus = 0 JobRunning TaskStatus = 1 JobFailed TaskStatus = 2 JobTimeout TaskStatus = 3 )
func (TaskStatus) MarshalJSON ¶
func (sha TaskStatus) MarshalJSON() ([]byte, error)
func (*TaskStatus) UnmarshalJSON ¶
func (sha *TaskStatus) UnmarshalJSON(json []byte) error
type UnableToLockCmdbSyncJob ¶
func (*UnableToLockCmdbSyncJob) Error ¶
func (e *UnableToLockCmdbSyncJob) Error() string
Click to show internal directories.
Click to hide internal directories.