params_transformer

package
v0.0.0-...-034c2bd Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormParamType string = "application/x-www-form-urlencoded"
	JsonType      string = "application/json"
	MultipartType string = "multipart/form-data"
)
View Source
const (
	Name = "params_transformer"
)

Variables

This section is empty.

Functions

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Params    []*TransParam `json:"params"`
	Remove    bool          `json:"remove"`
	ErrorType string        `json:"error_type"`
}

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func (*Driver) Check

func (d *Driver) Check(v interface{}, workers map[eosc.RequireId]interface{}) error

func (*Driver) ConfigType

func (d *Driver) ConfigType() reflect.Type

func (*Driver) Create

func (d *Driver) Create(id, name string, v interface{}, workers map[eosc.RequireId]interface{}) (eosc.IWorker, error)

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

func (f *Factory) Create(profession string, name string, label string, desc string, params map[string]interface{}) (eosc.IExtenderDriver, error)

type ParamsTransformer

type ParamsTransformer struct {
	*Driver
	// contains filtered or unexported fields
}

func (*ParamsTransformer) CheckSkill

func (p *ParamsTransformer) CheckSkill(skill string) bool

func (*ParamsTransformer) Destroy

func (p *ParamsTransformer) Destroy()

func (*ParamsTransformer) DoFilter

func (*ParamsTransformer) Id

func (p *ParamsTransformer) Id() string

func (*ParamsTransformer) Reset

func (p *ParamsTransformer) Reset(conf interface{}, workers map[eosc.RequireId]interface{}) error

func (*ParamsTransformer) Start

func (p *ParamsTransformer) Start() error

func (*ParamsTransformer) Stop

func (p *ParamsTransformer) Stop() error

type TransParam

type TransParam struct {
	Name          string `json:"name"`
	Position      string `json:"position"`
	ProxyName     string `json:"proxy_name"`
	ProxyPosition string `json:"proxy_position"`
	Required      bool   `json:"required"`
	Conflict      string `json:"conflict"`
}

Jump to

Keyboard shortcuts

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