penambahan data lis
This commit is contained in:
@@ -9,9 +9,26 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
_ "api-lis/cmd/api/docs"
|
||||
"api-lis/internal/server"
|
||||
)
|
||||
|
||||
// @title API Service
|
||||
// @version 1.0.0
|
||||
// @description A comprehensive Go API service with Swagger documentation
|
||||
// @termsOfService http://swagger.io/terms/
|
||||
|
||||
// @contact.name API Support
|
||||
// @contact.url http://www.swagger.io/support
|
||||
// @contact.email support@swagger.io
|
||||
|
||||
// @license.name Apache 2.0
|
||||
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
|
||||
// @host localhost:8080
|
||||
// @BasePath /api
|
||||
// @schemes http https
|
||||
|
||||
func gracefulShutdown(apiServer *http.Server, done chan bool) {
|
||||
// Create context that listens for the interrupt signal from the OS.
|
||||
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
||||
|
||||
Reference in New Issue
Block a user