app

package
v0.0.0-...-c48d56e Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UserColl *mongo.Collection
	TaskColl *mongo.Collection
)

Functions

func DownloadRecord

func DownloadRecord(ctx context.Context, taskID int64, recordID string) (record *models.Record, err error)

func GetOnlineAddr

func GetOnlineAddr(ctx context.Context, taskid int64) (addr string, err error)

GetOnlineAddr 获取diff任务部署的bubblecopy在线上的实例地址 example: bubblecopy_test_1 -> 127.0.0.1:8888

func IDGenerate

func IDGenerate(ctx context.Context, namespace string) (int64, error)

IDGenerate 自增id生成器

func Init

func Init() (err error)

func ListRecordsMeta

func ListRecordsMeta(ctx context.Context, taskid int64, path string) (metas []*models.RecordMeta, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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