owl

package
Version: v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 26

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

func (City1) TableName

func (City1) TableName() string

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

func (*City2) GetKey

func (c *City2) GetKey() interface{}

func (City2) TableName

func (City2) TableName() string

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"`
}

func SplitToArrayOfGroupTags

func SplitToArrayOfGroupTags(
	ids string, splitForIds string,
	names string, splitForNames string,
) []*GroupTag

Converts a string of ids and a string of names to a array of GroupTags

func (*GroupTag) String

func (groupTag *GroupTag) String() string

func (GroupTag) TableName

func (GroupTag) TableName() string

func (*GroupTag) ToJson

func (groupTag *GroupTag) ToJson() *json.Json

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 GroupTags

type GroupTags []*GroupTag

func (GroupTags) ToJson

func (groupTags GroupTags) ToJson() []*json.Json

func (GroupTags) ToNames

func (groupTags GroupTags) ToNames() []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

func (Isp) TableName

func (Isp) TableName() string

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 NameTag

type NameTag struct {
	Id    int16  `json:"id" db:"nt_id"`
	Value string `json:"value" db:"nt_value"`
}

func (NameTag) TableName

func (NameTag) 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

func (Province) TableName

func (Province) TableName() string

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) NewUuid

func (q *Query) NewUuid()

Generate UUID v4 for this object

func (*Query) String

func (q *Query) String() string

func (*Query) ToJson

func (q *Query) ToJson() map[string]interface{}

func (*Query) ToJsonOfQueryId

func (q *Query) ToJsonOfQueryId() map[string]interface{}

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

type UnableToLockCmdbSyncJob struct {
	Uuid ojson.Uuid `json:"last_sync_id"`
}

func (*UnableToLockCmdbSyncJob) Error

func (e *UnableToLockCmdbSyncJob) Error() string

Jump to

Keyboard shortcuts

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