cluster

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

func NewCluster

func NewCluster(node core.Node, client *clientv3.Client, opt ...Option) (*Cluster, error)

func (*Cluster) Endpoints

func (c *Cluster) Endpoints() []*remote.Endpoint

func (*Cluster) SendMessage

func (c *Cluster) SendMessage(ctx context.Context, to core.PID, message core.Message) error

func (*Cluster) Spawn

func (c *Cluster) Spawn(behavior core.ProcessBehavior, opts *core.SpawnOptions) (core.Process, error)

func (*Cluster) StaticRoute

func (c *Cluster) StaticRoute(nodeName string, nodeAddr string, attrs *attributes.Attributes) error

func (*Cluster) Stop

func (c *Cluster) Stop()

func (*Cluster) UpdateState

func (c *Cluster) UpdateState(state resolver.State) error

type Option

type Option func(opts *Options)

func Address

func Address(addr string) Option

func Discovery

func Discovery(discovery registry.Discovery) Option

func Registrar

func Registrar(registrar registry.Registrar) Option

type Options

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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