db_task

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDbTask

func NewDbTask(task *db.DbTask) job.Job

Types

type DbTask

type DbTask struct {
	*db.DbTask
}

func (*DbTask) Cancelling

func (j *DbTask) Cancelling(reason string)

func (*DbTask) GetName

func (j *DbTask) GetName() string

func (*DbTask) IsCancelling

func (j *DbTask) IsCancelling() bool

func (*DbTask) IsDone

func (j *DbTask) IsDone() bool

func (*DbTask) IsFailed

func (j *DbTask) IsFailed() bool

func (*DbTask) IsPending

func (j *DbTask) IsPending() bool

func (*DbTask) IsRunning

func (j *DbTask) IsRunning() bool

func (*DbTask) Requires

func (j *DbTask) Requires() []uuid.UUID

func (*DbTask) UUID

func (j *DbTask) UUID() uuid.UUID

type DbTaskHandler

type DbTaskHandler struct {
	DbApi    *db.DbApi
	DbConfig *config.DbConfig
	// contains filtered or unexported fields
}

func NewDbTaskHandler

func NewDbTaskHandler(dbConfig *config.DbConfig) *DbTaskHandler

func (*DbTaskHandler) BackupDb

func (h *DbTaskHandler) BackupDb(task *DbTask) (err error)

func (*DbTaskHandler) CreateDatabase

func (h *DbTaskHandler) CreateDatabase(task *DbTask) error

func (*DbTaskHandler) CreateUser

func (h *DbTaskHandler) CreateUser(task *DbTask) (err error)

func (*DbTaskHandler) Handle

func (h *DbTaskHandler) Handle(msg server.NamedElement) error

func (*DbTaskHandler) Init

func (h *DbTaskHandler) Init(setter server.GlobalSetter) (err error)

func (*DbTaskHandler) MigrateOut

func (h *DbTaskHandler) MigrateOut(task *DbTask) error

func (*DbTaskHandler) PostInit

func (h *DbTaskHandler) PostInit(getter server.GlobalGetter) error

func (*DbTaskHandler) RecoverJobs

func (h *DbTaskHandler) RecoverJobs() (jobs []job.Job, err error)

func (*DbTaskHandler) RestoreDb

func (h *DbTaskHandler) RestoreDb(task *DbTask) (err error)

func (*DbTaskHandler) WaitReadyDb

func (h *DbTaskHandler) WaitReadyDb(task *DbTask) (err error)

Jump to

Keyboard shortcuts

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