asgard

package
v0.0.0-...-168b963 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: Apache-2.0 Imports: 21 Imported by: 3

Documentation

Overview

Package asgard contains shared code that is used to create an aws/netflixoss style architecture (including lamp and migration)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(source, target string)

Connect tells a source node how to connect to a target node directly by name, only used when Eureka can't be used

func ConnectEveryEureka

func ConnectEveryEureka(name string)

ConnectEveryEureka service in every region

func Create

func Create(servicename, packagename string, regions, count int, dependencies ...string) string

Create a tier and specify any dependencies, return the full name of the last node created

func CreateChannels

func CreateChannels()

CreateChannels makes the maps of channels

func CreateEureka

func CreateEureka()

CreateEureka service registries in each zone

func Reload

func Reload(arch string) string

Reload the network from a file

func Run

func Run(rootservice, victim string)

Run architecture for a while then shut down

func SendToName

func SendToName(name string, msg gotocol.Message)

SendToName sends a message directly to a name via asgard, only used during setup

func ShutdownEureka

func ShutdownEureka()

ShutdownEureka shuts down the Eureka service registries and wait for them to go away

func ShutdownNodes

func ShutdownNodes()

ShutdownNodes - shut down the nodes and wait for them to go away

func StartNode

func StartNode(name string, dependencies ...string)

StartNode starts a node using the named package, and connect it to any dependencies

Types

This section is empty.

Jump to

Keyboard shortcuts

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