Compare commits

..

No commits in common. "f49b420e7872498351be5f31465183113fd7962e" and "0675fc61d52f8b14db53762a6a6c2b10f7de23a5" have entirely different histories.

2 changed files with 0 additions and 38 deletions

View File

@ -1,14 +1,5 @@
package main
// ___ ____ ___ ___
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
// \ / | _ | _ | \ / || __ | || ||\\
// \/ |___ |___ | \/ || ____| || || \\
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
// Repo: https://git.pbiernat.dev/golang/vegvisir
import (
"vegvisir/server"
)

View File

@ -1,14 +1,5 @@
package server
// ___ ____ ___ ___
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
// \ / | _ | _ | \ / || __ | || ||\\
// \/ |___ |___ | \/ || ____| || || \\
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
// Repo: https://git.pbiernat.dev/golang/vegvisir
import (
"encoding/json"
"io/ioutil"
@ -38,23 +29,3 @@ func (s *Server) LoadConfig(file string) error {
return nil
}
// func Run(s *Server) {
// s.StartListener()
// log.Println("Server started successfully...")
// Wait for an interrupt
// c := make(chan os.Signal, 1)
// signal.Notify(c, os.Interrupt, os.Kill)
// <-c
// log.Error("SIGKILL or SIGINT caught, shutting down...")
// Attempt a graceful shutdown
// ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
// defer cancel()
// s.shutdownServers(ctx)
// log.Error("all listeners shut down.")
// }