Documentation ¶
Index ¶
- Variables
- func DownloadRecord(ctx context.Context, taskID int64, recordID string) (record *models.Record, err error)
- func GetOnlineAddr(ctx context.Context, taskid int64) (addr string, err error)
- func IDGenerate(ctx context.Context, namespace string) (int64, error)
- func Init() (err error)
- func ListRecordsMeta(ctx context.Context, taskid int64, path string) (metas []*models.RecordMeta, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UserColl *mongo.Collection TaskColl *mongo.Collection )
Functions ¶
func DownloadRecord ¶
func GetOnlineAddr ¶
GetOnlineAddr 获取diff任务部署的bubblecopy在线上的实例地址 example: bubblecopy_test_1 -> 127.0.0.1:8888
func IDGenerate ¶
IDGenerate 自增id生成器
func ListRecordsMeta ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.