Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Spawner ¶
type Spawner interface {
// Name of this spawner.
Name() string
// Spawn starts a World. Once the function returns, World should
// be ready to accept connections on World.Addr.
Spawn(ctx context.Context, r io.Reader) (*World, error)
// Kill stops & purges a previously spawned World.
Kill(ctx context.Context, w World) error
// Ps lists the currently running Worlds in the given Galaxy g.
Ps(ctx context.Context, g string) ([]*World, error)
}
Click to show internal directories.
Click to hide internal directories.