Documentation ¶
Index ¶
- Constants
- func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)
- func Dubbo2ErrorResult(err error) protocol.RPCResult
- func NewFactory() eosc.IExtenderDriverFactory
- func Register(register eosc.IExtenderDriverRegister)
- type Client
- type Complete
- type Config
- type Param
- type ToHttp
- func (t *ToHttp) CheckSkill(skill string) bool
- func (t *ToHttp) Destroy()
- func (t *ToHttp) DoDubboFilter(ctx dubbo2_context.IDubbo2Context, next eocontext.IChain) (err error)
- func (t *ToHttp) DoFilter(ctx eocontext.EoContext, next eocontext.IChain) (err error)
- func (t *ToHttp) Reset(v interface{}, workers map[eosc.RequireId]eosc.IWorker) error
- func (t *ToHttp) Start() error
- func (t *ToHttp) Stop() error
Constants ¶
View Source
const (
Name = "dubbo2_to_http"
)
Variables ¶
This section is empty.
Functions ¶
func Dubbo2ErrorResult ¶
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 ¶
type Config ¶
type Config struct { Method string `json:"method" label:"方法" enum:"POST,GET,HEAD,PUT,PATCH,DELETE,CONNECT,OPTIONS,TRACE" required:"true"` //get/post Path string `json:"path" label:"转发路径" required:"true"` ContentType string `json:"content_type" label:"ContentType" enum:"application/json" required:"true"` // application/json 只支持json格式传输 Params []Param `json:"params" label:"参数解析" required:"true"` }
type ToHttp ¶
type ToHttp struct { drivers.WorkerBase // contains filtered or unexported fields }
func (*ToHttp) CheckSkill ¶
func (*ToHttp) DoDubboFilter ¶
func (t *ToHttp) DoDubboFilter(ctx dubbo2_context.IDubbo2Context, next eocontext.IChain) (err error)
Click to show internal directories.
Click to hide internal directories.