cluster

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRemote

func WithRemote(ectd_addr, prefix string) actor.SystemOption

Types

type Cluster

type Cluster struct {
	actor.Base
	// contains filtered or unexported fields
}

func (*Cluster) Address added in v1.0.4

func (c *Cluster) Address() string

func (*Cluster) OnHandleEvent

func (c *Cluster) OnHandleEvent(event interface{})

func (*Cluster) OnHandleMessage

func (c *Cluster) OnHandleMessage(sourceId, targetId string, msg interface{})

func (*Cluster) OnHandleRequest

func (c *Cluster) OnHandleRequest(sourceId, targetId, requestId string, msg interface{}) (respErr error)

func (*Cluster) OnInit

func (c *Cluster) OnInit()

func (*Cluster) OnNewServ added in v1.0.4

func (c *Cluster) OnNewServ(actorId, host string, add bool)

OnNewServ dispatch a new remote

func (*Cluster) OnSessionClosed added in v1.0.4

func (c *Cluster) OnSessionClosed(peerHost string)

func (*Cluster) OnSessionOpened added in v1.0.4

func (c *Cluster) OnSessionOpened(peerHost string)

func (*Cluster) OnSessionRecv added in v1.0.4

func (c *Cluster) OnSessionRecv(msg *actor_msg.ActorMessage)

func (*Cluster) OnStop

func (c *Cluster) OnStop() bool

type IRemoteProvider

type IRemoteProvider interface {
	Start(remote_provider.RemoteHandler) error
	Stop()
	NewClient(host string)
	StopClient(host string)

	SendMsg(addr string, bytes []byte) error
}

type IServiceMeshProvider

type IServiceMeshProvider interface {
	Start(servmesh_provider.ServMeshHander) error
	Stop()
	RegisterService(key string, value string) error
	UnregisterService(key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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