migration1568833756

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(tx *gorm.DB) error

Migrate Initiator parameter 'Text' to support External Initaitor generic JSON parameters.

Types

type Initiator

type Initiator struct {
	ID         uint         `gorm:"primary_key;auto_increment"`
	JobSpecID  models.JobID `gorm:"index;type:varchar(36) REFERENCES job_specs(id)"`
	Type       string       `gorm:"index;not null"`
	CreatedAt  time.Time    `gorm:"index"`
	Schedule   models.Cron
	Time       models.AnyTime
	Ran        bool
	Address    common.Address           `gorm:"index"`
	Requesters models.AddressCollection `gorm:"type:text"`
	Name       string
	Params     string
	DeletedAt  null.Time `gorm:"index"`
}

Initiator could be thought of as a trigger, defines how a Job can be started, or rather, how a JobRun can be created from a Job. Initiators will have their own unique ID, but will be associated to a parent JobID.

Jump to

Keyboard shortcuts

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