Documentation
¶
Index ¶
- func BasicMultiverse(name string) *basicMultiverse
- func ClientsWithDefaults(names ...string) common.SimpleConfigClients
- func Exist(name string) bool
- func LastSimplePortAllocated() int
- func LastUniversePortShift() int
- func Multiverse(config UniverseConfig) common.Universe
- func NewMultiVerse() common.Multiverse
- func ValidClients() []string
- func ValidServices() []string
- func Zeno()
- type Simple
- func (s *Simple) Auth() authIface.Client
- func (s *Simple) CreateAuthClient(config *commonIface.ClientConfig) error
- func (s *Simple) CreateHoarderClient(config *commonIface.ClientConfig) error
- func (s *Simple) CreateMonkeyClient(config *commonIface.ClientConfig) error
- func (s *Simple) CreatePatrickClient(config *commonIface.ClientConfig) error
- func (s *Simple) CreateSeerClient(config *commonIface.ClientConfig) error
- func (s *Simple) CreateTNSClient(config *commonIface.ClientConfig) error
- func (s *Simple) Hoarder() hoarderIface.Client
- func (s *Simple) Monkey() monkeyIface.Client
- func (s *Simple) Patrick() patrickIface.Client
- func (s *Simple) PeerNode() p2p.Node
- func (s *Simple) Provides(clients ...string) error
- func (s *Simple) Seer() seerIface.Client
- func (s *Simple) TNS() tnsIface.Client
- type Universe
- func (u *Universe) All() []peer.Node
- func (u *Universe) Auth() auth.Service
- func (u *Universe) AuthByPid(pid string) (auth.Service, bool)
- func (u *Universe) Cleanup()
- func (u *Universe) Context() context.Context
- func (u *Universe) CreateAuthService(config *commonIface.ServiceConfig) (peer.Node, error)
- func (u *Universe) CreateHoarderService(config *commonIface.ServiceConfig) (peer.Node, error)
- func (u *Universe) CreateMonkeyService(config *commonIface.ServiceConfig) (peer.Node, error)
- func (u *Universe) CreatePatrickService(config *commonIface.ServiceConfig) (peer.Node, error)
- func (u *Universe) CreateSeerService(config *commonIface.ServiceConfig) (peer.Node, error)
- func (u *Universe) CreateSimpleNode(name string, config *common.SimpleConfig) (peer.Node, error)
- func (u *Universe) CreateSubstrateService(config *commonIface.ServiceConfig) (peer.Node, error)
- func (u *Universe) CreateTNSService(config *commonIface.ServiceConfig) (peer.Node, error)
- func (u *Universe) GetPortHttp(node peer.Node) (int, error)
- func (u *Universe) GetServicePids(name string) ([]string, error)
- func (u *Universe) GetURLHttp(node peer.Node) (url string, err error)
- func (u *Universe) GetURLHttps(node peer.Node) (url string, err error)
- func (u *Universe) Hoarder() hoarder.Service
- func (u *Universe) HoarderByPid(pid string) (hoarder.Service, bool)
- func (u *Universe) Id() string
- func (u *Universe) Kill(name string) error
- func (u *Universe) KillNodeByNameID(name, id string) error
- func (u *Universe) ListNumber(name string) int
- func (u *Universe) Lookup(id string) (*common.NodeInfo, bool)
- func (u *Universe) Mesh(newNodes ...peer.Node)
- func (u *Universe) Monkey() monkey.Service
- func (u *Universe) MonkeyByPid(pid string) (monkey.Service, bool)
- func (u *Universe) Name() string
- func (u *Universe) Patrick() patrick.Service
- func (u *Universe) PatrickByPid(pid string) (patrick.Service, bool)
- func (u *Universe) PortFor(proto, _type string) int
- func (u *Universe) Provides(services ...string) error
- func (u *Universe) Register(node peer.Node, name string, ports map[string]int)
- func (u *Universe) Root() string
- func (u *Universe) RunFixture(name string, params ...interface{}) error
- func (u *Universe) Seer() seer.Service
- func (u *Universe) SeerByPid(pid string) (seer.Service, bool)
- func (u *Universe) Service(name string, config *commonIface.ServiceConfig) error
- func (u *Universe) Simple(name string) (common.Simple, error)
- func (u *Universe) StartAll(simples ...string) error
- func (u *Universe) StartWithConfig(mainConfig *common.Config) error
- func (u *Universe) Stop()
- func (u *Universe) Substrate() substrate.Service
- func (u *Universe) SubstrateByPid(pid string) (substrate.Service, bool)
- func (u *Universe) TNS() tns.Service
- func (u *Universe) TnsByPid(pid string) (tns.Service, bool)
- type UniverseConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicMultiverse ¶
func BasicMultiverse(name string) *basicMultiverse
func ClientsWithDefaults ¶
func ClientsWithDefaults(names ...string) common.SimpleConfigClients
func LastSimplePortAllocated ¶
func LastSimplePortAllocated() int
func LastUniversePortShift ¶
func LastUniversePortShift() int
func NewMultiVerse ¶
func NewMultiVerse() common.Multiverse
func ValidClients ¶
func ValidClients() []string
func ValidServices ¶
func ValidServices() []string
Types ¶
type Simple ¶
func (*Simple) CreateAuthClient ¶
func (s *Simple) CreateAuthClient(config *commonIface.ClientConfig) error
func (*Simple) CreateHoarderClient ¶
func (s *Simple) CreateHoarderClient(config *commonIface.ClientConfig) error
func (*Simple) CreateMonkeyClient ¶
func (s *Simple) CreateMonkeyClient(config *commonIface.ClientConfig) error
func (*Simple) CreatePatrickClient ¶
func (s *Simple) CreatePatrickClient(config *commonIface.ClientConfig) error
func (*Simple) CreateSeerClient ¶
func (s *Simple) CreateSeerClient(config *commonIface.ClientConfig) error
func (*Simple) CreateTNSClient ¶
func (s *Simple) CreateTNSClient(config *commonIface.ClientConfig) error
func (*Simple) Hoarder ¶
func (s *Simple) Hoarder() hoarderIface.Client
func (*Simple) Monkey ¶
func (s *Simple) Monkey() monkeyIface.Client
func (*Simple) Patrick ¶
func (s *Simple) Patrick() patrickIface.Client
type Universe ¶
type Universe struct {
// contains filtered or unexported fields
}
func (*Universe) CreateAuthService ¶
func (u *Universe) CreateAuthService(config *commonIface.ServiceConfig) (peer.Node, error)
func (*Universe) CreateHoarderService ¶
func (u *Universe) CreateHoarderService(config *commonIface.ServiceConfig) (peer.Node, error)
func (*Universe) CreateMonkeyService ¶
func (u *Universe) CreateMonkeyService(config *commonIface.ServiceConfig) (peer.Node, error)
func (*Universe) CreatePatrickService ¶
func (u *Universe) CreatePatrickService(config *commonIface.ServiceConfig) (peer.Node, error)
func (*Universe) CreateSeerService ¶
func (u *Universe) CreateSeerService(config *commonIface.ServiceConfig) (peer.Node, error)
func (*Universe) CreateSimpleNode ¶
func (*Universe) CreateSubstrateService ¶
func (u *Universe) CreateSubstrateService(config *commonIface.ServiceConfig) (peer.Node, error)
func (*Universe) CreateTNSService ¶
func (u *Universe) CreateTNSService(config *commonIface.ServiceConfig) (peer.Node, error)
func (*Universe) GetURLHttps ¶
func (*Universe) KillNodeByNameID ¶
func (*Universe) ListNumber ¶
func (*Universe) RunFixture ¶
func (*Universe) Service ¶
func (u *Universe) Service(name string, config *commonIface.ServiceConfig) error
func (*Universe) StartWithConfig ¶
Start universe based on config
func (*Universe) SubstrateByPid ¶
type UniverseConfig ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.