This commit is contained in:
crusader 2017-07-28 17:48:16 +09:00
parent 41dbd197ed
commit 6a5cb736ed
4 changed files with 21 additions and 26 deletions

BIN
debug

Binary file not shown.

21
main.go
View File

@ -11,6 +11,27 @@ import (
"git.loafle.net/overflow/overflow_service_websocket/server" "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() { func main() {
// Initialize config // Initialize config

View File

@ -168,8 +168,6 @@ func (c *client) onMessageReceived(messageType int, r io.Reader) {
log.Println(err) log.Println(err)
} }
log.Println(req.Body)
h := c.server.ProtocolHandler(req.Protocol) h := c.server.ProtocolHandler(req.Protocol)
if nil == h { if nil == h {

View File

@ -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)
}