dubboproxy

package
v0.0.0-...-4d3f714 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProxyTag = "mesherproxy"
)

Variables

View Source
var DubboListenAddr string

DubboListenAddr is a variable of type string used for storing listen address

Functions

func ConvertDubboReqToHTTPReq

func ConvertDubboReqToHTTPReq(ctx *dubbo.InvokeContext, dubboReq *dubbo.Request) *rest.Request

ConvertDubboReqToHTTPReq is a method which converts dubbo requesto to http request

func ConvertDubboRspToRestRsp

func ConvertDubboRspToRestRsp(dubboRsp *dubbo.DubboRsp, w http.ResponseWriter, ctx *dubbo.InvokeContext) error

ConvertDubboRspToRestRsp is a function which converts dubbo response to rest response

func ConvertHTTPReqToDubboReq

func ConvertHTTPReqToDubboReq(restReq *http.Request, ctx *dubbo.InvokeContext, inv *invocation.Invocation) error

ConvertHTTPReqToDubboReq is a function which converts http request in to dubbo request

func ConvertRestRspToDubboRsp

func ConvertRestRspToDubboRsp(ctx *dubbo.InvokeContext, resp *rest.Response, dubboRsp *dubbo.DubboRsp)

ConvertRestRspToDubboRsp is a function which converts rest response to dubbo response

func Handle

func Handle(ctx *dubbo.InvokeContext) error

Handle is a function

func ProxyRestHandler

func ProxyRestHandler(ctx *dubbo.InvokeContext) error

ProxyRestHandler is a function

func TransparentForwardHandler

func TransparentForwardHandler(w http.ResponseWriter, r *http.Request)

TransparentForwardHandler is a function

Types

type ProxyError

type ProxyError struct {
	Message string
}

ProxyError is a struct

func (ProxyError) Error

func (e ProxyError) Error() string

Error is a method which returns error

Jump to

Keyboard shortcuts

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