Documentation ¶
Index ¶
- Variables
- func DeleteTask(factory api.MetaStoreFactory, taskID string) (*meta.TaskInfo, error)
- func DeleteTaskCollectionPosition(taskPositionStore api.MetaStore[*meta.TaskCollectionPosition], taskID string, ...) error
- func EtcdStatus(ctx context.Context, etcdClient *clientv3.Client) error
- func GetAllTaskInfo(taskInfoStore api.MetaStore[*meta.TaskInfo]) ([]*meta.TaskInfo, error)
- func GetTaskInfo(taskInfoStore api.MetaStore[*meta.TaskInfo], taskID string) (*meta.TaskInfo, error)
- func UpdateTaskCollectionPosition(taskPositionStore api.MetaStore[*meta.TaskCollectionPosition], taskID string, ...) error
- func UpdateTaskState(taskInfoStore api.MetaStore[*meta.TaskInfo], taskID string, ...) error
- type EtcdMetaStore
- func (e *EtcdMetaStore) GetTaskCollectionPositionMetaStore(ctx context.Context) api.MetaStore[*meta.TaskCollectionPosition]
- func (e *EtcdMetaStore) GetTaskInfoMetaStore(ctx context.Context) api.MetaStore[*meta.TaskInfo]
- func (e *EtcdMetaStore) Txn(ctx context.Context) (any, func(err error) error, error)
- type MySQLMetaStore
- func (s *MySQLMetaStore) GetTaskCollectionPositionMetaStore(ctx context.Context) api.MetaStore[*meta.TaskCollectionPosition]
- func (s *MySQLMetaStore) GetTaskInfoMetaStore(ctx context.Context) api.MetaStore[*meta.TaskInfo]
- func (s *MySQLMetaStore) Txn(ctx context.Context) (any, func(err error) error, error)
- type TaskCollectionPositionEtcdStore
- func (t *TaskCollectionPositionEtcdStore) Delete(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
- func (t *TaskCollectionPositionEtcdStore) Get(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) ([]*meta.TaskCollectionPosition, error)
- func (t *TaskCollectionPositionEtcdStore) Put(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
- type TaskCollectionPositionMysqlStore
- func (m *TaskCollectionPositionMysqlStore) Delete(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
- func (m *TaskCollectionPositionMysqlStore) Get(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) ([]*meta.TaskCollectionPosition, error)
- func (m *TaskCollectionPositionMysqlStore) Put(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
- type TaskInfoEtcdStore
- type TaskInfoMysqlStore
- func (m *TaskInfoMysqlStore) Delete(ctx context.Context, metaObj *meta.TaskInfo, txn any) error
- func (m *TaskInfoMysqlStore) Get(ctx context.Context, metaObj *meta.TaskInfo, txn any) ([]*meta.TaskInfo, error)
- func (m *TaskInfoMysqlStore) Put(ctx context.Context, metaObj *meta.TaskInfo, txn any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EtcdOpTimeout = 5 * time.Second EtcdOpRetryTime uint = 5 )
Functions ¶
func DeleteTask ¶
func GetAllTaskInfo ¶
func GetTaskInfo ¶
Types ¶
type EtcdMetaStore ¶
type EtcdMetaStore struct {
// contains filtered or unexported fields
}
func NewEtcdMetaStore ¶
func NewEtcdMetaStore(ctx context.Context, etcdServerConfig config.EtcdServerConfig, rootPath string) (*EtcdMetaStore, error)
func (*EtcdMetaStore) GetTaskCollectionPositionMetaStore ¶
func (e *EtcdMetaStore) GetTaskCollectionPositionMetaStore(ctx context.Context) api.MetaStore[*meta.TaskCollectionPosition]
func (*EtcdMetaStore) GetTaskInfoMetaStore ¶
type MySQLMetaStore ¶
type MySQLMetaStore struct {
// contains filtered or unexported fields
}
func NewMySQLMetaStore ¶
func (*MySQLMetaStore) GetTaskCollectionPositionMetaStore ¶
func (s *MySQLMetaStore) GetTaskCollectionPositionMetaStore(ctx context.Context) api.MetaStore[*meta.TaskCollectionPosition]
func (*MySQLMetaStore) GetTaskInfoMetaStore ¶
type TaskCollectionPositionEtcdStore ¶
type TaskCollectionPositionEtcdStore struct {
// contains filtered or unexported fields
}
func (*TaskCollectionPositionEtcdStore) Delete ¶
func (t *TaskCollectionPositionEtcdStore) Delete(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
func (*TaskCollectionPositionEtcdStore) Get ¶
func (t *TaskCollectionPositionEtcdStore) Get(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) ([]*meta.TaskCollectionPosition, error)
func (*TaskCollectionPositionEtcdStore) Put ¶
func (t *TaskCollectionPositionEtcdStore) Put(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
type TaskCollectionPositionMysqlStore ¶
type TaskCollectionPositionMysqlStore struct {
// contains filtered or unexported fields
}
func (*TaskCollectionPositionMysqlStore) Delete ¶
func (m *TaskCollectionPositionMysqlStore) Delete(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
func (*TaskCollectionPositionMysqlStore) Get ¶
func (m *TaskCollectionPositionMysqlStore) Get(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) ([]*meta.TaskCollectionPosition, error)
func (*TaskCollectionPositionMysqlStore) Put ¶
func (m *TaskCollectionPositionMysqlStore) Put(ctx context.Context, metaObj *meta.TaskCollectionPosition, txn any) error
type TaskInfoEtcdStore ¶
type TaskInfoEtcdStore struct {
// contains filtered or unexported fields
}
func NewTaskInfoEtcdStore ¶
type TaskInfoMysqlStore ¶
type TaskInfoMysqlStore struct {
// contains filtered or unexported fields
}
func NewTaskInfoMysqlStore ¶
Click to show internal directories.
Click to hide internal directories.