sample

package
v1.8.5-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct{}

Job is a sample to show how to implement a job.

func (*Job) MaxFails

func (j *Job) MaxFails() uint

MaxFails is implementation of same method in Interface.

func (*Job) Run

func (j *Job) Run(ctx job.Context, params job.Parameters) error

Run the replication logic here.

func (*Job) ShouldRetry

func (j *Job) ShouldRetry() bool

ShouldRetry ...

func (*Job) Validate

func (j *Job) Validate(params job.Parameters) error

Validate is implementation of same method in Interface.

Jump to

Keyboard shortcuts

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