rpc

package
v0.0.0-...-3d3caa2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientManager

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

func NewClientManager

func NewClientManager() *ClientManager

func (*ClientManager) AddMService

func (cm *ClientManager) AddMService(s model.Service) error

func (*ClientManager) GetRPCClientByInstanceId

func (cm *ClientManager) GetRPCClientByInstanceId(id uint32) *ServiceRPCClient

func (*ClientManager) GetRPCClientByName

func (cm *ClientManager) GetRPCClientByName(name string) *ServiceRPCClient

type ServiceRPCClient

type ServiceRPCClient struct {
	Conn              *grpc.ClientConn
	Client            *message.GatewayProtocolClient
	ServiceName       string
	ServiceInstanceId uint32
	RequestMessage    proto.Message
	ResponseMessage   proto.Message
}

Jump to

Keyboard shortcuts

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