Versions in this module Expand all Collapse all v1 v1.2.0-pre Jun 6, 2024 v1.1.5 Aug 23, 2024 Changes in this version + var BaseAfterStartDelay = 500 + var DefaultHTTPListenFormat string = "%s://" + DefaultHost + ":%d" + var DefaultHost string = "127.0.0.1" + var DefaultP2PListenFormat string = "/ip4/" + DefaultHost + "/tcp/%d" + var DreamlandApiListen = DefaultHost + ":1421" + var FixtureMap = map[string]FixtureDefinition + var MaxAfterStartDelay = 1000 + var MeshTimeout = 5 * time.Second + var Ports map[string]int + var Registry *handlerRegistry + func RegisterFixture(name string, handler FixtureHandler) + func ValidFixtures() []string + func Zeno() + type ClientCreate func(peer.Node, *commonIface.ClientConfig) (commonIface.Client, error) + type ClientCreationMethod func(*commonIface.ClientConfig) error + type Config struct + Services map[string]commonIface.ServiceConfig + Simples map[string]SimpleConfig + type FixtureDefinition struct + BlockCLI bool + Description string + ImportRef string + Internal bool + Variables []FixtureVariable + type FixtureHandler func(universe *Universe, params ...interface{}) error + type FixtureVariable struct + Alias string + Description string + Name string + Required bool + type Multiverse struct + func MultiVerse() *Multiverse + func (m *Multiverse) Context() context.Context + func (m *Multiverse) Status() interface{} + func (m *Multiverse) Universe(name string) *Universe + func (m *Multiverse) Universes() interface{} + type NodeInfo struct + DbFactory kvdb.Factory + Name string + Node peer.Node + Ports map[string]int + type ServiceCreate func(*Universe, *commonIface.ServiceConfig) (commonIface.Service, error) + type Simple struct + func (s *Simple) Auth() (authIface.Client, error) + func (s *Simple) Hoarder() (hoarderIface.Client, error) + func (s *Simple) Monkey() (monkeyIface.Client, error) + func (s *Simple) Patrick() (patrickIface.Client, error) + func (s *Simple) PeerNode() peer.Node + func (s *Simple) Provides(clients ...string) error + func (s *Simple) Seer() (seerIface.Client, error) + func (s *Simple) TNS() (tnsIface.Client, error) + type SimpleConfig struct + Clients map[string]*commonIface.ClientConfig + type SimpleConfigClients struct + Auth *commonIface.ClientConfig + Hoarder *commonIface.ClientConfig + Monkey *commonIface.ClientConfig + Patrick *commonIface.ClientConfig + Seer *commonIface.ClientConfig + TNS *commonIface.ClientConfig + func (s SimpleConfigClients) Compat() map[string]*commonIface.ClientConfig + type Universe struct + func GetUniverse(name string) (*Universe, error) + func New(config UniverseConfig) *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) CreateSimpleNode(name string, config *SimpleConfig) (peer.Node, error) + func (u *Universe) Gateway() gateway.Service + func (u *Universe) GetInfo(node peer.Node) (*NodeInfo, 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) (string, error) + func (u *Universe) GetURLHttps(node peer.Node) (string, 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) (*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, error) + 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) (*Simple, error) + func (u *Universe) StartAll(simples ...string) error + func (u *Universe) StartWithConfig(mainConfig *Config) error + func (u *Universe) Stop() + func (u *Universe) Substrate() substrate.Service + func (u *Universe) SubstrateByPid(pid string) (substrate.Service, bool) + func (u *Universe) SwarmKey() []byte + func (u *Universe) TNS() tns.Service + func (u *Universe) TnsByPid(pid string) (tns.Service, bool) + type UniverseConfig struct + Id string + KeepRoot bool + Name string