endpoints

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: 11 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(serverId int32, serviceId, serviceType, serviceName string, version int64, rpcType string, rpcHandler inf.IRpcHandler) *actor.PID

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

func (*EndpointManager) GetSender added in v1.0.2

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 added in v1.0.2

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 added in v1.0.2

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/11/8 @Update yr 2024/11/8
Package remote @Title title @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