jobs

package
v0.0.0-...-1dd082f Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobRegistry = map[string]Job{
	"$BP2000ROOT/ltRepoExtract.sh": RepoExtract{},
}

Functions

func UpdateStatus

func UpdateStatus(
	ctx context.Context,
	db *sqlx.DB,
	id uint,
	status string,
)

Types

type AutoRetirements

type AutoRetirements struct {
	Id     uint
	UserId string
	Month  uint
	AppId  uint
}

func (AutoRetirements) Run

func (job AutoRetirements) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP30Classify

type BP30Classify struct {
	Id     uint
	UserId string
}

func (BP30Classify) Run

func (job BP30Classify) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP30DistributeMultipliers

type BP30DistributeMultipliers struct {
	Id uint
}

func (BP30DistributeMultipliers) Run

func (job BP30DistributeMultipliers) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP30EditImpute

type BP30EditImpute struct {
	Id uint
}

func (BP30EditImpute) Run

func (job BP30EditImpute) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP30Export

type BP30Export struct {
	Id      uint
	Command string
	Out     string
}

func (BP30Export) Run

func (job BP30Export) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP30Generate

type BP30Generate struct {
	Id uint
}

func (BP30Generate) Run

func (job BP30Generate) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP30Import

type BP30Import struct {
	Id       uint
	UserId   string
	Language string
	RespId   uint
	Data     string
}

func (BP30Import) Run

func (job BP30Import) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP30Transfer

type BP30Transfer struct {
	Id uint
}

func (BP30Transfer) Run

func (job BP30Transfer) Run(ctx context.Context, params string, db *sqlx.DB) error

type BP52Ltl

type BP52Ltl struct {
	Id        uint
	UserId    string
	PrintDate string
	Data      string
	FTPParm   string
}

type Job

type Job interface {
	Run(ctx context.Context, params []string, db *sqlx.DB) error
}

type RepoExtract

type RepoExtract struct {
	Id         uint
	UserId     string
	TransferId string
}

func (RepoExtract) Run

func (job RepoExtract) Run(ctx context.Context, params []string, db *sqlx.DB) error

type RespFile

type RespFile struct {
	CtlFile string `db:"import_ctl_name"`
	Bopkey  uint   `db:"resp_bopkey"`
}

Jump to

Keyboard shortcuts

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