store

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMysql

func NewMysql(db *gorm.DB) *mysql.TccAsyncTask

NewMysql ...

Types

type TccAsyncTaskInterface

type TccAsyncTaskInterface interface {
	// TryPlan get try execute play, example sql.
	TryPlan(uid, name, value string) string
	// Try add async task
	Try(uid, name, value string) error
	// TryAndConfirm add and submit async task
	TryAndConfirm(uid, name, value string) error
	// Confirm submit async task
	Confirm(uid string) error
	// Cancel delete async task
	Cancel(uid string) error
	// Tasks get tasks
	Tasks(limit int) ([]*dto.TccAsyncTaskSchema, error)
	// Task get task
	Task(uid string) (*dto.TccAsyncTaskSchema, error)
}

TccAsyncTaskInterface ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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