-
Notifications
You must be signed in to change notification settings - Fork 0
/
cas.go
36 lines (23 loc) · 958 Bytes
/
cas.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package main
import (
"backend/config"
"backend/database"
"backend/web"
"fmt"
"log"
)
func main() {
fmt.Printf(" ____ _ __ _ _ \n/ ___|| | ___ _ / _| __ _| | | ___ _ __ \n\\___ \\| |/ / | | | |_ / _` | | |/ _ \\ '_ \\ \n ___) | <| |_| | _| (_| | | | __/ | | |\n|____/|_|\\_\\\\__, |_| \\__,_|_|_|\\___|_| |_|\n |___/ \n\n")
fmt.Println("")
fmt.Println("**************************************************************")
//time.Sleep(3 * time.Second)
log.Println("Welcome to Centralized Authentication Service.")
log.Println("Service will be booting up shortly.")
log.Println("(C) 2021 - Skyfallen | All rights reserved.")
//time.Sleep(2 * time.Second)
conf := config.Parse()
log.Printf("Skyfallen CAS %v is starting.", conf["CAS_VERSION"])
db := database.Connect(conf)
log.Printf("Starting the web server on port %v", conf["WEB_PORT"])
web.Serve(conf,db)
}