writer

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 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 Registers the creation function for a new writer, returning the path to the resource plugin configuration file. If an error occurs, an error is returned. This is currently not used in the code directly, but the content of resources/plugin.json is automatically placed into the newly generated code file through the tools/datax/build command, for the purpose of registering the Writer. The content in resources/plugin.json is used to register the Writer by being automatically placed into the newly generated code file through the tools/datax/build command, without being explicitly used in the code.

Types

type Maker

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

Maker Writer Generator

type Writer

type Writer interface {
	spi.Writer

	// Resource Plugin Configuration
	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