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 entity provides a typed Go client for the entity manipulation commands registered by softmod/factop/entity.lua.
|
Package entity provides a typed Go client for the entity manipulation commands registered by softmod/factop/entity.lua. |
|
Package game provides a typed Go client for the server administration commands registered by softmod/factop/game.lua.
|
Package game provides a typed Go client for the server administration commands registered by softmod/factop/game.lua. |
|
Package player provides a typed Go client for the player manipulation commands registered by softmod/factop/player.lua.
|
Package player provides a typed Go client for the player manipulation commands registered by softmod/factop/player.lua. |
|
Package playerattr provides a typed Go client for the per-player key-value attribute commands registered by softmod/factop/playerattr.lua.
|
Package playerattr provides a typed Go client for the per-player key-value attribute commands registered by softmod/factop/playerattr.lua. |
|
Package resource provides a typed Go client for the resource and pollution commands registered by softmod/factop/resource.lua.
|
Package resource provides a typed Go client for the resource and pollution commands registered by softmod/factop/resource.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 tile provides a typed Go client for the tile manipulation commands registered by softmod/factop/tile.lua.
|
Package tile provides a typed Go client for the tile manipulation commands registered by softmod/factop/tile.lua. |
Click to show internal directories.
Click to hide internal directories.