Compare commits
2 Commits
0675fc61d5
...
f49b420e78
Author | SHA1 | Date | |
---|---|---|---|
|
f49b420e78 | ||
|
8ba2c8b18d |
9
main.go
9
main.go
@ -1,5 +1,14 @@
|
||||
package main
|
||||
|
||||
// ___ ____ ___ ___
|
||||
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
|
||||
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
|
||||
// \ / | _ | _ | \ / || __ | || ||\\
|
||||
// \/ |___ |___ | \/ || ____| || || \\
|
||||
|
||||
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
|
||||
// Repo: https://git.pbiernat.dev/golang/vegvisir
|
||||
|
||||
import (
|
||||
"vegvisir/server"
|
||||
)
|
||||
|
@ -1,5 +1,14 @@
|
||||
package server
|
||||
|
||||
// ___ ____ ___ ___
|
||||
// \ \ / / | _ | __| \ \ / / || | __ || || _ |
|
||||
// \ \/ / |___ | |__ \ \/ / || |___ || ||___|
|
||||
// \ / | _ | _ | \ / || __ | || ||\\
|
||||
// \/ |___ |___ | \/ || ____| || || \\
|
||||
|
||||
// Copyright (c) 2021 Piotr Biernat. https://pbiernat.dev. MIT License
|
||||
// Repo: https://git.pbiernat.dev/golang/vegvisir
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
@ -29,3 +38,23 @@ 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.")
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user