Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Checksum = func() string { f, err := os.Open(os.Args[0]) FatalError("Error generating checksum", err) hash := sha1.New() if _, err := io.Copy(hash, f); err != nil { FatalError("Error generating checksum", err) } err = f.Close() FatalError("Error generating checksum", err) return hex.EncodeToString(hash.Sum(nil)) }()
Checksum is the checksum of the proxy file.
View Source
var Debugging = false
Debugging represents whether or not the proxy will log debug messages (Its auto updated to whatever is set in the configuration).
View Source
var Diode diode.Writer
Diode is a non-blocking writer that ensures it doesn't cause lag with too much logging.
View Source
var TotalPlayers = 0
TotalPlayers is temporary until events are added.
Functions ¶
func FatalError ¶
FatalError logs an error to console exits the program.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.