Documentation ¶
Index ¶
- Variables
- func CreateWrapper(tx *gorm.DB, v interface{}) rc.ReturnCode
- func CreatingDefaultModels(isUpdateAnyWhere bool)
- func UpdateDB(currentVersion string) rc.ReturnCode
- type Event
- type EventExtended
- type Instance
- func (instance *Instance) BeforeCreate(tx *gorm.DB) (err error)
- func (instance *Instance) FinishInstance(db *gorm.DB, instanceIsFinishedDescription string) rc.ReturnCode
- func (instance *Instance) GetInstance(db *gorm.DB, instanceToken string, isForUpdate bool) rc.ReturnCode
- func (instance *Instance) TableName() string
- type InstanceInfo
- func (instanceInfo *InstanceInfo) GetInstanceInfo(db *gorm.DB, instanceToken string, isForUpdate bool) rc.ReturnCode
- func (instanceInfo *InstanceInfo) Print()
- func (instanceInfo *InstanceInfo) RefreshEvents(db *gorm.DB) rc.ReturnCode
- func (instanceInfo *InstanceInfo) RefreshStatuses(db *gorm.DB) rc.ReturnCode
- func (instanceInfo *InstanceInfo) ToString() string
- type Object
- type Status
- type StatusInfo
- type Version
- type Workflow
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentVersion = "v2021.06.15_a"
Functions ¶
func CreateWrapper ¶
func CreateWrapper(tx *gorm.DB, v interface{}) rc.ReturnCode
CreateWrapper - wrapper for database create function (gets returncode and write database error to log)
func CreatingDefaultModels ¶
func CreatingDefaultModels(isUpdateAnyWhere bool)
func UpdateDB ¶
func UpdateDB(currentVersion string) rc.ReturnCode
Types ¶
type Event ¶
type EventExtended ¶
type Instance ¶
type Instance struct { gorm.Model InstanceToken string InstanceTimeout int ObjectID uint Object Object InstanceIsFinished bool InstanceIsFinishedDescription string }
func (*Instance) FinishInstance ¶
func (*Instance) GetInstance ¶
type InstanceInfo ¶
func (*InstanceInfo) GetInstanceInfo ¶
func (instanceInfo *InstanceInfo) GetInstanceInfo(db *gorm.DB, instanceToken string, isForUpdate bool) rc.ReturnCode
func (*InstanceInfo) Print ¶
func (instanceInfo *InstanceInfo) Print()
func (*InstanceInfo) RefreshEvents ¶
func (instanceInfo *InstanceInfo) RefreshEvents(db *gorm.DB) rc.ReturnCode
func (*InstanceInfo) RefreshStatuses ¶
func (instanceInfo *InstanceInfo) RefreshStatuses(db *gorm.DB) rc.ReturnCode
func (*InstanceInfo) ToString ¶
func (instanceInfo *InstanceInfo) ToString() string
type Status ¶
type Status struct { gorm.Model ObjectID uint Object Object `json:"-"` StatusName string StatusDesc string StatusType string `gorm:"not null"` }
func (*Status) GetStatusById ¶
type StatusInfo ¶
func (*StatusInfo) GetStatusInfo ¶
func (statusInfo *StatusInfo) GetStatusInfo(tx *gorm.DB, statusName string, objectID uint) rc.ReturnCode
GetStatusInfo - get status info by statusName & objectID
func (*StatusInfo) Print ¶
func (statusInfo *StatusInfo) Print()
func (*StatusInfo) ToString ¶
func (statusInfo *StatusInfo) ToString() string
Click to show internal directories.
Click to hide internal directories.