core

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDBReader added in v0.5.0

func BuildDBReader(connURL *url.URL) (data.DBReaderConn, error)

func CreateCompressedWriter

func CreateCompressedWriter(bufWriter *bufio.Writer, compressionType string, format string) (io.WriteCloser, error)

func RunMv

func RunMv(ctx context.Context, task *Task) error

Types

type Config

type Config struct {
	Source       string             `json:"source,omitempty" yaml:"source,omitempty"`
	Dest         string             `json:"dest,omitempty" yaml:"dest,omitempty"`
	SourceConn   *Connection        `json:"-" yaml:"-"`
	DestConn     *Connection        `json:"-" yaml:"-"`
	StreamConfig *data.StreamConfig `json:"stream_config,omitempty" yaml:"stream_config,omitempty"`
}

func NewConfig

func NewConfig(source, dest string, streamConfig *data.StreamConfig) *Config

type Connection

type Connection struct {
	Url       string
	ParsedUrl *url.URL
}

type ExecutionConfig

type ExecutionConfig struct {
	Config      *Config
	WriterPipe  *io.PipeWriter
	Concurrency int
}

func NewExecutionConfig

func NewExecutionConfig(config *Config, concurrency int) *ExecutionConfig

type Task

type Task struct {
	ExecConfig *ExecutionConfig
}

func NewTask

func NewTask(exec ExecutionConfig) *Task

func SetupMv

func SetupMv(sConfig *data.StreamConfig) (*Task, error)

Jump to

Keyboard shortcuts

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