Documentation
¶
Index ¶
Constants ¶
View Source
const ( SettingsDirectory = "/opt/factorio/settings" FactOpSettings = SettingsDirectory + "/factop-settings.json" ServerSettings = SettingsDirectory + "/server-settings.json" MapGenSettings = SettingsDirectory + "/map-gen-settings.json" ServerAdminList = SettingsDirectory + "/server-adminlist.json" ServerBanList = SettingsDirectory + "/server-banlist.json" )
View Source
const CreateSaveOutput = SaveLocation + "/create-save.log"
View Source
const CurrentSoftMod = SaveLocation + "/softmod.zip"
View Source
const FactorioBinary = FactorioDirectory + "/bin/x64/factorio"
View Source
const FactorioDirectory = "/opt/factorio/current"
View Source
const NewLine = "\n"
View Source
const NewSave = SaveLocation + "/newSave.zip"
View Source
const RconStartupMarker = "Starting RCON interface at IP ADDR"
View Source
const SaveFile = SaveLocation + "/save.zip"
View Source
const SaveLocation = "/opt/factorio/saves"
Variables ¶
View Source
var IgnorePattern = regexp.MustCompile(`(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) \[(\w+)] (.+)`)
Functions ¶
Types ¶
type ComponentTemplate ¶
ComponentTemplate is a template for creating new components
func (*ComponentTemplate) Shutdown ¶ added in v0.1.0
func (c *ComponentTemplate) Shutdown() error
func (*ComponentTemplate) Startup ¶ added in v0.1.0
func (c *ComponentTemplate) Startup() error
type Factorio ¶
type LogHandler ¶ added in v0.1.0
type Nats ¶
func (*Nats) PublishMsg ¶
type Rcon ¶
type Service ¶
type UDPBridge ¶ added in v0.1.0
type UDPBridge struct {
slog.Logger
Context context.Context
Nats *Nats
// contains filtered or unexported fields
}
UDPBridge bridges factorio udp_send and udp_rec traffic to and from NATS
Source Files
¶
Click to show internal directories.
Click to hide internal directories.