rpcx

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 9 Imported by: 6

Documentation

Overview

@Title @Description @Author Wangwengang 2021/8/19 下午4:58 @Update Wangwengang 2021/8/19 下午4:58

@Title @Description @Author Wangwengang 2021/8/19 下午5:22 @Update Wangwengang 2021/8/19 下午5:22

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcxClients

type RpcxClients struct {
	FailMode   client.FailMode
	SelectMode client.SelectMode
	Option     client.Option

	ServiceDiscovery client.ServiceDiscovery
	// contains filtered or unexported fields
}
var (
	RpcxClientsObj *RpcxClients
)

func (*RpcxClients) GetXClient

func (rc *RpcxClients) GetXClient(servicePath string) (xc client.XClient, err error)

func (*RpcxClients) NewXClient

func (rc *RpcxClients) NewXClient(servicePath string) (xc client.XClient, err error)

func (*RpcxClients) SetFailMode

func (rc *RpcxClients) SetFailMode(mode client.FailMode)

func (*RpcxClients) SetOption

func (rc *RpcxClients) SetOption(option client.Option)

func (*RpcxClients) SetSelectMode

func (rc *RpcxClients) SetSelectMode(selectMode client.SelectMode)

func (*RpcxClients) SetupServiceDiscovery

func (rc *RpcxClients) SetupServiceDiscovery()

type RpcxServer

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

func (*RpcxServer) RegisterName

func (s *RpcxServer) RegisterName(name string, rcvr interface{}, metadata string)

func (*RpcxServer) Serve

func (s *RpcxServer) Serve()

type Server

type Server interface {
	RegisterName(name string, rcvr interface{}, metadata string)
	Serve()
}

func NewRpcxServer

func NewRpcxServer() Server

Directories

Path Synopsis
@Title @Description @Author Wangwengang 2021/8/19 上午10:59 @Update Wangwengang 2021/8/19 上午10:59
@Title @Description @Author Wangwengang 2021/8/19 上午10:59 @Update Wangwengang 2021/8/19 上午10:59

Jump to

Keyboard shortcuts

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