Documentation
¶
Index ¶
Constants ¶
View Source
const ACTION_OBTAIN = "obtain"
View Source
const ACTION_PUSH = "push"
View Source
const SERVICE = "io.darlean.actorregistryservice"
Variables ¶
This section is empty.
Functions ¶
func Push ¶
func Push(inv invoke.TransportInvoker, hosts []string, request PushRequest) error
Types ¶
type ActorInfo ¶
type ActorInfo struct { Applications []ApplicationInfo `json:"applications"` Placement ActorPlacement `json:"Placement"` }
type ActorPlacement ¶
type ActorPushInfo ¶
type ActorPushInfo struct { Placement ActorPlacement `json:"placement"` MigrationVersion string `json:"migrationVersion"` }
type ApplicationInfo ¶
type ObtainRequest ¶
type ObtainRequest struct { }
type ObtainResponse ¶
type ObtainResponse struct { Nonce string `json:"nonce"` ActorInfo map[string]ActorInfo `json:"actorInfo"` }
func Obtain ¶
func Obtain(inv invoke.TransportInvoker, hosts []string) (*ObtainResponse, error)
type PushRequest ¶
type PushRequest struct { Application string `json:"application"` ActorInfo map[string]ActorPushInfo `json:"actorInfo"` }
type RemoteActorRegistryFetcher ¶
type RemoteActorRegistryFetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
func NewFetcher(hosts []string, invoker invoke.TransportInvoker) *RemoteActorRegistryFetcher
func (*RemoteActorRegistryFetcher) Get ¶
func (registry *RemoteActorRegistryFetcher) Get(actorType string) *actorregistry.ActorInfo
func (*RemoteActorRegistryFetcher) Start ¶
func (registry *RemoteActorRegistryFetcher) Start()
func (*RemoteActorRegistryFetcher) Stop ¶
func (registry *RemoteActorRegistryFetcher) Stop()
type RemoteActorRegistryPusher ¶
type RemoteActorRegistryPusher struct {
// contains filtered or unexported fields
}
func NewPusher ¶
func NewPusher(hosts []string, appId string, invoker invoke.TransportInvoker) *RemoteActorRegistryPusher
func (*RemoteActorRegistryPusher) Set ¶
func (registry *RemoteActorRegistryPusher) Set(info map[string]actorregistry.ActorPushInfo)
func (*RemoteActorRegistryPusher) Start ¶
func (registry *RemoteActorRegistryPusher) Start()
func (*RemoteActorRegistryPusher) Stop ¶
func (registry *RemoteActorRegistryPusher) Stop()
Click to show internal directories.
Click to hide internal directories.