meta

package
v0.0.0-...-3a4af3b Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MinTaskState Must ATTENTION the of `add` and `reduce` method of server.TaskNumMetric
	// if you add new task state !!!!
	MinTaskState = TaskStateInitial
	MaxTaskState = TaskStatePaused
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PositionInfo

type PositionInfo struct {
	StartTime int64
	Time      int64
	DataPair  *commonpb.KeyDataPair
	Dropped   bool
}

type TaskCollectionPosition

type TaskCollectionPosition struct {
	TaskID         string
	CollectionID   int64
	CollectionName string
	// Positions key -> channel name, value -> check point
	Positions map[string]*PositionInfo
	// OpPositions latest op positions
	OpPositions map[string]*PositionInfo
	// TargetPositions target instance positions
	TargetPositions map[string]*PositionInfo
}

type TaskInfo

type TaskInfo struct {
	TaskID                string
	MilvusConnectParam    model.MilvusConnectParam
	KafkaConnectParam     model.KafkaConnectParam
	WriterCacheConfig     model.BufferConfig
	CollectionInfos       []model.CollectionInfo
	DBCollections         map[string][]model.CollectionInfo
	NameMapping           []model.NameMapping
	RPCRequestChannelInfo model.ChannelInfo
	ExtraInfo             model.ExtraInfo
	ExcludeCollections    []string // it's used for the `*` collection name
	DisableAutoStart      bool
	State                 TaskState
	Reason                string
}

func (*TaskInfo) CollectionNames

func (t *TaskInfo) CollectionNames() []string

func (*TaskInfo) MapNames

func (t *TaskInfo) MapNames(db, collection string) (string, string)

type TaskState

type TaskState int
const (
	TaskStateInitial TaskState = iota
	TaskStateRunning
	TaskStatePaused
)

func (TaskState) IsValidTaskState

func (t TaskState) IsValidTaskState() bool

func (TaskState) String

func (t TaskState) String() string

Jump to

Keyboard shortcuts

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