endpoints

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package endpoints @Title 请填写文件名称(需要改) @Description 请填写文件描述(需要改) @Author yr 2024/8/29 下午6:24 @Update yr 2024/8/29 下午6:24

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointManager

type EndpointManager struct {
	inf.IEventProcessor
	inf.IEventHandler
	// contains filtered or unexported fields
}

func GetEndpointManager

func GetEndpointManager() *EndpointManager

func (*EndpointManager) AddService

func (em *EndpointManager) AddService(pid *actor.PID, rpcHandler inf.IRpcHandler)

AddService 添加本地服务到服务发现中

func (*EndpointManager) CreatePid

func (em *EndpointManager) CreatePid(serverId int32, serviceId, serviceType, serviceName string, version int64, rpcType string) *actor.PID

func (*EndpointManager) GetSender

func (em *EndpointManager) GetSender(pid *actor.PID) inf.IRpcSender

func (*EndpointManager) Init

func (em *EndpointManager) Init(eventProcessor inf.IEventProcessor) *EndpointManager

func (*EndpointManager) RemoveService

func (em *EndpointManager) RemoveService(pid *actor.PID)

func (*EndpointManager) Select

func (em *EndpointManager) Select(sender *actor.PID, serverId int32, serviceId, serviceName string) inf.IBus

func (*EndpointManager) SelectByFilterAndChoice

func (em *EndpointManager) SelectByFilterAndChoice(sender *actor.PID, filter func(pid *actor.PID) bool, choice func(pids []*actor.PID) []*actor.PID) inf.IBus

func (*EndpointManager) SelectByPid

func (em *EndpointManager) SelectByPid(sender, receiver *actor.PID) inf.IBus

func (*EndpointManager) SelectByRule

func (em *EndpointManager) SelectByRule(sender *actor.PID, rule func(pid *actor.PID) bool) inf.IBus

SelectByRule 根据自定义规则选择服务

func (*EndpointManager) SelectByServiceType

func (em *EndpointManager) SelectByServiceType(sender *actor.PID, serverId int32, serviceType, serviceName string) inf.IBus

func (*EndpointManager) Start

func (em *EndpointManager) Start()

func (*EndpointManager) Stop

func (em *EndpointManager) Stop()

Directories

Path Synopsis
Package client @Title title @Description desc @Author yr 2024/11/7 @Update yr 2024/11/7
Package client @Title title @Description desc @Author yr 2024/11/7 @Update yr 2024/11/7
Package remote @Title title @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
Package remote @Title title @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
gr
Package gr @Title grpc服务端监听器 @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
Package gr @Title grpc服务端监听器 @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
handler
Package handler @Title title @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
Package handler @Title title @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
pool
Package pool @Title title @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
Package pool @Title title @Description desc @Author yr 2024/12/18 @Update yr 2024/12/18
rx
Package rx @Title rpcx的服务端监听器 @Description desc @Author yr 2024/11/8 @Update yr 2024/11/8
Package rx @Title rpcx的服务端监听器 @Description desc @Author yr 2024/11/8 @Update yr 2024/11/8
Package repository @Title title @Description desc @Author yr 2024/11/11 @Update yr 2024/11/11
Package repository @Title title @Description desc @Author yr 2024/11/11 @Update yr 2024/11/11

Jump to

Keyboard shortcuts

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