Documentation
¶
Overview ¶
Package client provides a typed Go client for interacting with a factop server over NATS. It handles the RCON-over-NATS connection and provides the base for command-specific sub-packages.
Convention: each softmod/factop/<name>.lua that registers custom commands gets a corresponding client/<name>/ package. The Lua file defines the server-side commands; the Go package provides the typed client methods.
softmod/factop/tiles.lua → client/tiles/ (TilesClient) softmod/factop/foo.lua → client/foo/ (FooClient)
All sub-packages accept a *client.Conn and use its Rcon method to send commands to the factop server.
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = 10 * time.Second RconSubject = "factop.rcon" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package entities provides a typed Go client for the entity manipulation commands registered by softmod/factop/entities.lua.
|
Package entities provides a typed Go client for the entity manipulation commands registered by softmod/factop/entities.lua. |
|
Package resources provides a typed Go client for the resource and pollution commands registered by softmod/factop/resources.lua.
|
Package resources provides a typed Go client for the resource and pollution commands registered by softmod/factop/resources.lua. |
|
Package surface provides a typed Go client for the surface property and chunk management commands registered by softmod/factop/surface.lua.
|
Package surface provides a typed Go client for the surface property and chunk management commands registered by softmod/factop/surface.lua. |
|
Package tiles provides a typed Go client for the tile manipulation commands registered by softmod/factop/tiles.lua.
|
Package tiles provides a typed Go client for the tile manipulation commands registered by softmod/factop/tiles.lua. |
Click to show internal directories.
Click to hide internal directories.