fullmesh

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 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(ectdAddr, prefix string) actor.SystemOption

Types

type Cluster

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

func (*Cluster) Address

func (c *Cluster) Address() string

func (*Cluster) OnEventClusterUpdate

func (c *Cluster) OnEventClusterUpdate(event actor.EvClusterUpdate)

func (*Cluster) OnEventDelActor

func (c *Cluster) OnEventDelActor(event actor.EvDelActor)

func (*Cluster) OnEventNewActor

func (c *Cluster) OnEventNewActor(event actor.EvNewActor)

func (*Cluster) OnEventSessionClosed

func (c *Cluster) OnEventSessionClosed(event actor.EvSessionClosed)

func (*Cluster) OnEventSessionOpened

func (c *Cluster) OnEventSessionOpened(event actor.EvSessionOpened)

func (*Cluster) OnHandle added in v1.3.0

func (c *Cluster) OnHandle(msg actor.Message)

func (*Cluster) OnInit

func (c *Cluster) OnInit()

func (*Cluster) OnNewServ

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

OnNewServ dispatch a new remote

func (*Cluster) OnSessionClosed

func (c *Cluster) OnSessionClosed(peerHost string)

func (*Cluster) OnSessionOpened

func (c *Cluster) OnSessionOpened(peerHost string)

func (*Cluster) OnSessionRecv

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

func (*Cluster) OnStop

func (c *Cluster) OnStop() bool

type RemoteProvider

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

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

type ServiceMeshProvider

type ServiceMeshProvider 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