Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dubbo3GrpcService ¶
type Dubbo3GrpcService interface { // SetProxyImpl sets proxy. XXX_SetProxyImpl(impl protocol.Invoker) // GetProxyImpl gets proxy. XXX_GetProxyImpl() protocol.Invoker // ServiceDesc gets an RPC service's specification. XXX_ServiceDesc() *grpc.ServiceDesc }
Dubbo3GrpcService is gRPC service
type DubboExporter ¶
type DubboExporter struct { protocol.BaseExporter // contains filtered or unexported fields }
DubboExporter is dubbo3 service exporter.
func NewDubboExporter ¶
func NewDubboExporter(key string, invoker protocol.Invoker, exporterMap *sync.Map, serviceMap *sync.Map) *DubboExporter
NewDubboExporter get a Dubbo3Exporter.
func (*DubboExporter) Unexport ¶
func (de *DubboExporter) Unexport()
Unexport unexport dubbo3 service exporter.
type DubboInvoker ¶
type DubboInvoker struct { protocol.BaseInvoker // contains filtered or unexported fields }
DubboInvoker is implement of protocol.Invoker, a dubboInvoker refer to one service and ip.
func NewDubboInvoker ¶
func NewDubboInvoker(url *common.URL) (*DubboInvoker, error)
NewDubboInvoker constructor
func (*DubboInvoker) Destroy ¶
func (di *DubboInvoker) Destroy()
Destroy destroy dubbo3 client invoker.
func (*DubboInvoker) Invoke ¶
func (di *DubboInvoker) Invoke(ctx context.Context, invocation protocol.Invocation) protocol.Result
Invoke call remoting.
func (*DubboInvoker) IsAvailable ¶
func (di *DubboInvoker) IsAvailable() bool
IsAvailable check if invoker is available, now it is useless
type DubboProtocol ¶
type DubboProtocol struct { protocol.BaseProtocol // contains filtered or unexported fields }
It support dubbo protocol. It implements Protocol interface for dubbo protocol.
func NewDubboProtocol ¶
func NewDubboProtocol() *DubboProtocol
NewDubboProtocol create a dubbo protocol.
type UnaryService ¶
type UnaryService struct {
// contains filtered or unexported fields
}
func (*UnaryService) GetReqParamsInterfaces ¶
func (d *UnaryService) GetReqParamsInterfaces(methodName string) ([]interface{}, bool)
func (*UnaryService) InvokeWithArgs ¶
func (d *UnaryService) InvokeWithArgs(ctx context.Context, methodName string, arguments []interface{}) (interface{}, error)
Directories ¶
Path | Synopsis |
---|---|
Package reflection implements server reflection service.
|
Package reflection implements server reflection service. |
Click to show internal directories.
Click to hide internal directories.