dubbo

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JavaStringClassName = "java.lang.String"
	JavaLangClassName   = "java.lang.Long"
)

TODO java class name elem

Variables

View Source
var DefaultMapOption = client.MapOption{
	// contains filtered or unexported fields
}

DefaultMapOption default map opt

Functions

This section is empty.

Types

type Client

type Client struct {
	GenericServicePool map[string]*dg.GenericService
	// contains filtered or unexported fields
}

Client client to generic invoke dubbo

func NewDubboClient

func NewDubboClient() *Client

NewDubboClient create dubbo client

func SingletonDubboClient

func SingletonDubboClient() *Client

SingletonDubboClient singleton dubbo clent

func (*Client) Call

func (dc *Client) Call(req *client.Request) (res interface{}, err error)

Call invoke service

func (*Client) Close

func (dc *Client) Close() error

Close clear GenericServicePool.

func (*Client) Get

Get find a dubbo GenericService

func (*Client) Init

func (dc *Client) Init() error

Init init dubbo, config mapping can do here

func (*Client) MapParams

func (dc *Client) MapParams(req *client.Request) (interface{}, error)

MapParams params mapping to api.

Jump to

Keyboard shortcuts

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