1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-02 16:08:31 +00:00

refactor CloseConnection

This commit is contained in:
Kane York 2015-11-17 19:53:58 -08:00
parent 3e956ba456
commit 3802dea35c
2 changed files with 32 additions and 14 deletions

View file

@ -28,6 +28,11 @@ type ConfigFile struct {
SSLCertificateFile string
SSLKeyFile string
UseElasticSearch bool
ESServer string
ESIndexPrefix string
ESHostName string
// Nacl keys
OurPrivateKey []byte
OurPublicKey []byte
@ -115,6 +120,13 @@ 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)