Documentation ¶
Overview ¶
Package repository @Title title @Description desc @Author yr 2024/11/11 @Update yr 2024/11/11
Package repository @Title 服务存储器 @Description 用于存放所有服务的注册信息,包括本地和远程的服务信息 @Author yr 2024/11/7 @Update yr 2024/11/7
Package repository @Title 服务选择器 @Description 根据条件选择服务 @Author yr 2024/11/7 @Update yr 2024/11/7
Index ¶
- type Repository
- func (r *Repository) Add(client inf.IRpcSender)
- func (r *Repository) AddTmp(sender inf.IRpcSender) inf.IRpcSender
- func (r *Repository) Remove(pid *actor.PID)
- func (r *Repository) Select(sender *actor.PID, serverId int32, serviceId, serviceName string) inf.IBus
- func (r *Repository) SelectByFilterAndChoice(sender *actor.PID, filter func(pid *actor.PID) bool, ...) inf.IBus
- func (r *Repository) SelectByPid(sender, receiver *actor.PID) inf.IBus
- func (r *Repository) SelectByRule(sender *actor.PID, rule func(pid *actor.PID) bool) inf.IBus
- func (r *Repository) SelectByServiceType(sender *actor.PID, serverId int32, nodeType, serviceName string) inf.IBus
- func (r *Repository) SelectByServiceUid(serviceUid string) inf.IRpcSender
- func (r *Repository) SelectBySvcUid(sender *actor.PID, serviceUid string) inf.IBus
- func (r *Repository) Start()
- func (r *Repository) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository() *Repository
func (*Repository) Add ¶
func (r *Repository) Add(client inf.IRpcSender)
func (*Repository) AddTmp ¶ added in v1.0.2
func (r *Repository) AddTmp(sender inf.IRpcSender) inf.IRpcSender
func (*Repository) Remove ¶
func (r *Repository) Remove(pid *actor.PID)
func (*Repository) SelectByFilterAndChoice ¶ added in v1.0.2
func (*Repository) SelectByPid ¶
func (r *Repository) SelectByPid(sender, receiver *actor.PID) inf.IBus
func (*Repository) SelectByRule ¶
func (*Repository) SelectByServiceType ¶ added in v1.0.2
func (*Repository) SelectByServiceUid ¶
func (r *Repository) SelectByServiceUid(serviceUid string) inf.IRpcSender
func (*Repository) SelectBySvcUid ¶
func (*Repository) Start ¶ added in v1.0.2
func (r *Repository) Start()
func (*Repository) Stop ¶ added in v1.0.2
func (r *Repository) Stop()
Click to show internal directories.
Click to hide internal directories.