1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 18:06:55 +00:00

Add submission of connection reports to logstash

This commit is contained in:
Kane York 2015-12-16 11:15:17 -08:00
parent da57357793
commit 03e6e99cb9
4 changed files with 264 additions and 56 deletions

View file

@ -11,6 +11,8 @@ import (
const CryptoBoxKeyLength = 32
const NegativeOne = ^uint64(0)
type ConfigFile struct {
// Numeric server id known to the backend
ServerID int
@ -121,13 +123,6 @@ type ClientInfo struct {
pingCount int
}
type esReportBasic struct {
Timestamp time.Time
Host string
}
type esDisconnectReport struct {
}
func VersionFromString(v string) ClientVersion {
var cv ClientVersion
fmt.Sscanf(v, "ffz_%d.%d.%d", &cv.Major, &cv.Minor, &cv.Revision)