DDD (Domain Design) partially implemented, added comments everywhere.

This commit is contained in:
2018-04-30 22:31:48 +05:00
parent 3456ecd312
commit 242fb3d361
20 changed files with 85 additions and 17 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/pztrn/fastpastebin/context"
"github.com/pztrn/fastpastebin/database"
"github.com/pztrn/fastpastebin/database/migrations"
"github.com/pztrn/fastpastebin/pastes"
)
func main() {
@@ -34,6 +35,8 @@ func main() {
api.New(c)
api.InitializeAPI()
pastes.New(c)
// CTRL+C handler.
signalHandler := make(chan os.Signal, 1)
shutdownDone := make(chan bool, 1)