Documentation ¶
Index ¶
- func NewDB(ds sqlutil.DataSource, bootstrapSpecID int32, lggr logger.Logger) *db
- func ValidatedBootstrapSpecToml(tomlString string) (jb job.Job, err error)
- type Delegate
- func (d *Delegate) AfterJobCreated(spec job.Job)
- func (d *Delegate) BeforeJobCreated(spec job.Job)
- func (d *Delegate) BeforeJobDeleted(spec job.Job)
- func (d *Delegate) JobType() job.Type
- func (d *Delegate) OnDeleteJob(context.Context, job.Job) error
- func (d *Delegate) ServicesForSpec(ctx context.Context, jb job.Job) (services []job.ServiceCtx, err error)
- type RelayGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Delegate ¶
type Delegate struct { RelayGetter // contains filtered or unexported fields }
Delegate creates Bootstrap jobs
func NewDelegateBootstrap ¶
func NewDelegateBootstrap( ds sqlutil.DataSource, jobORM job.ORM, peerWrapper *ocrcommon.SingletonPeerWrapper, lggr logger.Logger, ocr2Cfg validate.OCR2Config, insecureCfg validate.InsecureConfig, relayers RelayGetter, ) *Delegate
NewDelegateBootstrap creates a new Delegate
func (*Delegate) AfterJobCreated ¶
AfterJobCreated satisfies the job.Delegate interface.
func (*Delegate) BeforeJobCreated ¶
func (*Delegate) BeforeJobDeleted ¶
BeforeJobDeleted satisfies the job.Delegate interface.
func (*Delegate) OnDeleteJob ¶
OnDeleteJob satisfies the job.Delegate interface.
func (*Delegate) ServicesForSpec ¶
func (d *Delegate) ServicesForSpec(ctx context.Context, jb job.Job) (services []job.ServiceCtx, err error)
ServicesForSpec satisfies the job.Delegate interface.
Click to show internal directories.
Click to hide internal directories.