writer

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWriter

func RegisterWriter(maker Maker) (err error)

RegisterWriter 注册创建函数new写入器,返回的是资源插件配置文件地州,出错时会返回error 目前未在代码中实际使用,而是通过tools/datax/build的tools/datax/build命令自动将resources/plugin.json 中的内容放入到新生成的代码文件中,用以注册Writer

Types

type Maker

type Maker interface {
	Default() (Writer, error)
}

Maker 写入生成器

type Writer

type Writer interface {
	spi.Writer

	//资源插件配置
	ResourcesConfig() *config.JSON
}

Writer 写入器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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