client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package client @Title title @Description desc @Author yr 2024/11/7 @Update yr 2024/11/7

Package client @Title 本地服务的Client @Description 本地服务的Client,调用时直接使用rpcHandler发往对应的service @Author yr 2024/9/3 下午4:26 @Update yr 2024/9/3 下午4:26

Package client @Title title @Description desc @Author yr 2024/12/3 @Update yr 2024/12/3

Package client @Title 远程服务的Client @Description 远程服务的Client @Author yr 2024/9/3 下午4:26 @Update yr 2024/9/3 下午4:26

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSender added in v1.0.2

func NewSender(senderType string, pid *actor.PID, rpcHandler inf.IRpcHandler) inf.IRpcSender

func NewTmpSender added in v1.0.2

func NewTmpSender(senderType string, pid *actor.PID, rpcHandler inf.IRpcHandler) inf.IRpcSender

func Register added in v1.0.2

func Register(tp string, creator HandlerCreator)

Types

type HandlerCreator added in v1.0.2

type HandlerCreator func(sender inf.IRpcSender) inf.IRpcSenderHandler

type Sender added in v1.0.2

type Sender struct {
	inf.IRpcHandler
	inf.IRpcSenderHandler
	// contains filtered or unexported fields
}

func (*Sender) Close added in v1.0.2

func (c *Sender) Close()

func (*Sender) GetPid added in v1.0.2

func (c *Sender) GetPid() *actor.PID

func (*Sender) SendRequest added in v1.0.2

func (c *Sender) SendRequest(envelope inf.IEnvelope) error

func (*Sender) SendRequestAndRelease added in v1.0.2

func (c *Sender) SendRequestAndRelease(envelope inf.IEnvelope) error

func (*Sender) SendResponse added in v1.0.2

func (c *Sender) SendResponse(envelope inf.IEnvelope) error

Jump to

Keyboard shortcuts

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