reader

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 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 registers a new database reader function and returns the address of the plugin resource configuration file. If an error occurs, it will be wrapped in err. Currently, it is not used directly in the code, but instead, the go generate command in tools/datax/build automatically inserts the content from resources/plugin.json into a newly generated code file to register the Reader. This approach is used to register the Reader without manually editing the code.

Types

type Maker

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

Maker is a write generator.

type Reader

type Reader interface {
	spi.Reader

	ResourcesConfig() *config.JSON // Plugin resource configuration.
}

Reader is a database reader.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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