mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-02 16:08:31 +00:00
refactor CloseConnection
This commit is contained in:
parent
3e956ba456
commit
3802dea35c
2 changed files with 32 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue