extra_params

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormParamType string = "application/x-www-form-urlencoded"
	JsonType      string = "application/json"
)
View Source
const (
	Name = "extra_params"
)

Variables

This section is empty.

Functions

func ConvertHeaderKey

func ConvertHeaderKey(header string) string

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Params    []*ExtraParam `json:"params"`
	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 ExtraParam

type ExtraParam struct {
	Name     string      `json:"name"`
	Position string      `json:"position"`
	Value    interface{} `json:"value"`
	Conflict string      `json:"conflict"`
}

type ExtraParams

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

func (*ExtraParams) CheckSkill

func (e *ExtraParams) CheckSkill(skill string) bool

func (*ExtraParams) Destroy

func (e *ExtraParams) Destroy()

func (*ExtraParams) DoFilter

func (*ExtraParams) Id

func (e *ExtraParams) Id() string

func (*ExtraParams) Reset

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

func (*ExtraParams) Start

func (e *ExtraParams) Start() error

func (*ExtraParams) Stop

func (e *ExtraParams) Stop() 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)

Jump to

Keyboard shortcuts

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