Skip to content
Snippets Groups Projects
Commit 03013b1d authored by Abdulsamad Sheikh's avatar Abdulsamad Sheikh :cat2:
Browse files

Update 2 files

- /handlers/handlers.go
- /services/services.go
parent c02dc419
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
"assignment1/models" "assignment1/models"
"assignment1/services" "assignment1/services"
"fmt" "fmt"
"time"
) )
......
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"net/http" "net/http"
"time" "time"
"assignment1/models" "assignment1/models"
"time"
) )
// FetchBooksByLanguage retrieves books from the Gutendex API by language. // FetchBooksByLanguage retrieves books from the Gutendex API by language.
...@@ -88,7 +89,6 @@ func CheckServiceAvailability(serviceURL string) int { ...@@ -88,7 +89,6 @@ func CheckServiceAvailability(serviceURL string) int {
} }
// Assuming you have a global variable to track the start time of your service.
var serviceStartTime = time.Now() var serviceStartTime = time.Now()
// GetUptime calculates the uptime of the service in seconds. // GetUptime calculates the uptime of the service in seconds.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment