ing
This commit is contained in:
parent
41dbd197ed
commit
6a5cb736ed
21
main.go
21
main.go
|
@ -11,6 +11,27 @@ import (
|
|||
"git.loafle.net/overflow/overflow_service_websocket/server"
|
||||
)
|
||||
|
||||
const (
|
||||
version = "1.0.0"
|
||||
website = "https://www.overflow.cloud"
|
||||
banner = `
|
||||
|
||||
██████╗ ██╗ ██╗███████╗██████╗ ███████╗██╗ ██████╗ ██╗ ██╗
|
||||
██╔═══██╗██║ ██║██╔════╝██╔══██╗██╔════╝██║ ██╔═══██╗██║ ██║
|
||||
██║ ██║██║ ██║█████╗ ██████╔╝█████╗ ██║ ██║ ██║██║ █╗ ██║
|
||||
██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██╗██╔══╝ ██║ ██║ ██║██║███╗██║
|
||||
╚██████╔╝ ╚████╔╝ ███████╗██║ ██║██║ ███████╗╚██████╔╝╚███╔███╔╝
|
||||
╚═════╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚══╝╚══╝
|
||||
|
||||
`
|
||||
)
|
||||
|
||||
func printVersion() {
|
||||
log.Printf("Version: %s\n", version)
|
||||
log.Printf("Url: %s\n", website)
|
||||
log.Println(banner)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
// Initialize config
|
||||
|
|
|
@ -168,8 +168,6 @@ func (c *client) onMessageReceived(messageType int, r io.Reader) {
|
|||
log.Println(err)
|
||||
}
|
||||
|
||||
log.Println(req.Body)
|
||||
|
||||
h := c.server.ProtocolHandler(req.Protocol)
|
||||
if nil == h {
|
||||
|
||||
|
|
24
version.go
24
version.go
|
@ -1,24 +0,0 @@
|
|||
package main
|
||||
|
||||
import "log"
|
||||
|
||||
const (
|
||||
version = "1.0.0"
|
||||
website = "https://www.overflow.cloud"
|
||||
banner = `
|
||||
|
||||
██████╗ ██╗ ██╗███████╗██████╗ ███████╗██╗ ██████╗ ██╗ ██╗
|
||||
██╔═══██╗██║ ██║██╔════╝██╔══██╗██╔════╝██║ ██╔═══██╗██║ ██║
|
||||
██║ ██║██║ ██║█████╗ ██████╔╝█████╗ ██║ ██║ ██║██║ █╗ ██║
|
||||
██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██╗██╔══╝ ██║ ██║ ██║██║███╗██║
|
||||
╚██████╔╝ ╚████╔╝ ███████╗██║ ██║██║ ███████╗╚██████╔╝╚███╔███╔╝
|
||||
╚═════╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚══╝╚══╝
|
||||
|
||||
`
|
||||
)
|
||||
|
||||
func printVersion() {
|
||||
log.Printf("Version: %s\n", version)
|
||||
log.Printf("Url: %s\n", website)
|
||||
log.Println(banner)
|
||||
}
|
Loading…
Reference in New Issue
Block a user