http_to_dubbo2

package
v0.15.12 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "http_to_dubbo2"
)

Variables

View Source
var (
	ErrorTimeoutComplete = errors.New("complete timeout")
)

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 Complete

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

func NewComplete

func NewComplete(retry int, timeOut time.Duration, service string, method string, params []param) *Complete

func (*Complete) Complete

func (c *Complete) Complete(org eocontext.EoContext) error

type Config

type Config struct {
	Service string   `json:"service" label:"服务名称" required:"true"`
	Method  string   `json:"method" label:"方法名称" required:"true"`
	Params  []*Param `json:"params" label:"参数" required:"true"`
}

type Param

type Param struct {
	ClassName string `json:"class_name" label:"class_name" required:"true"` //对应Java中类的class_name
	FieldName string `json:"field_name" label:"根字段名"`                       //读取body中json的根字段名
}

type ToDubbo2

type ToDubbo2 struct {
	drivers.WorkerBase
	// contains filtered or unexported fields
}

func (*ToDubbo2) CheckSkill

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

func (*ToDubbo2) Destroy

func (p *ToDubbo2) Destroy()

func (*ToDubbo2) DoFilter

func (p *ToDubbo2) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err error)

func (*ToDubbo2) DoHttpFilter

func (p *ToDubbo2) DoHttpFilter(ctx http_context.IHttpContext, next eocontext.IChain) error

func (*ToDubbo2) Reset

func (p *ToDubbo2) Reset(v interface{}, workers map[eosc.RequireId]eosc.IWorker) error

func (*ToDubbo2) Start

func (p *ToDubbo2) Start() error

func (*ToDubbo2) Stop

func (p *ToDubbo2) Stop() error

Jump to

Keyboard shortcuts

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