internal

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorPlacement

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

ActorPlacement maintains membership of actor instances and consistent hash tables to discover the actor while interacting with Placement service.

func NewActorPlacement

func NewActorPlacement(
	serverAddr []string, clientCert *dapr_credentials.CertChain,
	appID, runtimeHostName string, actorTypes []string,
	appHealthFn func() bool,
	afterTableUpdateFn func()) *ActorPlacement

NewActorPlacement initializes ActorPlacement for the actor service.

func (*ActorPlacement) LookupActor

func (p *ActorPlacement) LookupActor(actorType, actorID string) (string, string)

LookupActor resolves to actor service instance address using consistent hashing table.

func (*ActorPlacement) Start

func (p *ActorPlacement) Start()

Start connects placement service to register to membership and send heartbeat to report the current member status periodically.

func (*ActorPlacement) Stop

func (p *ActorPlacement) Stop()

Stop shuts down server stream gracefully.

func (*ActorPlacement) WaitUntilPlacementTableIsReady

func (p *ActorPlacement) WaitUntilPlacementTableIsReady()

WaitUntilPlacementTableIsReady waits until placement table is until table lock is unlocked.

Jump to

Keyboard shortcuts

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