mirror of
https://github.com/pterodactyl/wings.git
synced 2025-12-10 00:32:17 -06:00
commit f5baab4e8854ee9e9b517d3254467953c2be8931
Author: DaneEveritt <dane@daneeveritt.com>
Date: Sat Jul 9 17:50:53 2022 -0400
Finalize activity event sending logic and cron config
commit 9830387f21a6eab5f8a41cccd19a7ce1386fa1f9
Author: DaneEveritt <dane@daneeveritt.com>
Date: Sat Jul 9 16:26:13 2022 -0400
Send power events in a more usable format
commit 49f3a61d16047d4a509b7a3a1615a84e2a9401ab
Author: DaneEveritt <dane@daneeveritt.com>
Date: Sat Jul 9 15:47:24 2022 -0400
Configure cron to actually send to endpoint
commit 28137c4c149385bce5157413c54f60a460a19c5a
Author: DaneEveritt <dane@daneeveritt.com>
Date: Sat Jul 9 15:42:29 2022 -0400
Copy the body buffer otherwise subsequent backoff attempts will not have a buffer to send
commit 20e44bdc55fe250d3f18fc6284aed8cf8ed8f65e
Author: DaneEveritt <dane@daneeveritt.com>
Date: Sat Jul 9 14:38:41 2022 -0400
Add internal logic to process activity events and send them to the panel
commit 0380488cd2e12848f3d9de086cd2991035202ad2
Author: DaneEveritt <dane@daneeveritt.com>
Date: Mon Jul 4 17:55:17 2022 -0400
Track power events
commit 9eab08b92f7d5c90db8985b2c3c5923df92955cb
Author: DaneEveritt <dane@daneeveritt.com>
Date: Mon Jul 4 17:36:03 2022 -0400
Initial logic to support logging activity on Wings to send back to the panel
18 lines
390 B
Go
18 lines
390 B
Go
package main
|
|
|
|
import (
|
|
"github.com/pterodactyl/wings/cmd"
|
|
"math/rand"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
// Since we make use of the math/rand package in the code, especially for generating
|
|
// non-cryptographically secure random strings we need to seed the RNG. Just make use
|
|
// of the current time for this.
|
|
rand.Seed(time.Now().UnixNano())
|
|
|
|
// Execute the main binary code.
|
|
cmd.Execute()
|
|
}
|