db_task

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 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, dbApi *db.DbApi) job.Task

Types

type DbTask

type DbTask struct {
	*db.DbTask

	*job.BaseTaskDependency
	// contains filtered or unexported fields
}

func (*DbTask) Cancel

func (t *DbTask) Cancel(reason string)

func (*DbTask) GetName

func (t *DbTask) GetName() string

func (*DbTask) IsDone

func (t *DbTask) IsDone() bool

func (*DbTask) IsFailed

func (t *DbTask) IsFailed() bool

func (*DbTask) IsPending

func (t *DbTask) IsPending() bool

func (*DbTask) IsRunning

func (t *DbTask) IsRunning() bool

func (*DbTask) JobID

func (t *DbTask) JobID() uuid.UUID

func (*DbTask) Requires

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

func (*DbTask) UUID

func (t *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) 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