reader

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterReader

func RegisterReader(maker Maker) (err error)

RegisterReader 通过生成数据库读取器函数new注册到读取器,返回插件资源配置文件地址,在出错时会包err 目前未在代码中实际使用,而是通过tools/datax/build的go generate命令自动将resources/plugin.json 中的内容放入到新生成的代码文件中,用以注册Reader

Types

type Maker

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

Maker 写入生成器

type Reader

type Reader interface {
	spi.Reader

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

Reader 数据库读取器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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