data_transform

package
v0.19.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name = "data_transform"
)

Variables

This section is empty.

Functions

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	RequestTransform  bool              `json:"request_transform" label:"请求转换"`
	ResponseTransform bool              `json:"response_transform" label:"响应转换"`
	XMLRootTag        string            `json:"xml_root_tag" label:"XML根标签"`
	XMLDeclaration    map[string]string `json:"xml_declaration" label:"XML声明"`
	ErrorType         string            `json:"error_type" label:"报错数据类型" default:"json" enum:"json,xml"`
}

Jump to

Keyboard shortcuts

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