rpc

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClusterName  string                 // 集群名称
	Consul       string                 // 服务发现注册地址
	ServiceKind  []*cluster.Kind        // 使用proto actor grain生成的服务类型
	EventHandler func(any)              // event处理
	Options      []cluster.ConfigOption // 集群设置
}

type Manager

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

func NewManagerWithConfig

func NewManagerWithConfig(config *Config) *Manager

func (*Manager) GetCluster

func (m *Manager) GetCluster() *cluster.Cluster

func (*Manager) OnDestroy

func (m *Manager) OnDestroy()

func (*Manager) Start

func (m *Manager) Start(actorSystem *actor.ActorSystem) (cls *cluster.Cluster)

Jump to

Keyboard shortcuts

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