retribusi
This commit is contained in:
+25
-1
@@ -7,6 +7,10 @@ import (
|
||||
"net/http"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
_ "template_blueprint/docs"
|
||||
//_ "template_blueprint/cmd/api/docs"
|
||||
//_ "template_blueprint/internal/docs"
|
||||
"template_blueprint/internal/server"
|
||||
"time"
|
||||
)
|
||||
@@ -35,8 +39,28 @@ func gracefulShutdown(apiServer *http.Server, done chan bool) {
|
||||
done <- true
|
||||
}
|
||||
|
||||
func main() {
|
||||
// @title Tag Service API0
|
||||
// @version 1.0
|
||||
// @description A Tag service API in Go using Gin framework
|
||||
// @termsOfService https://tos.santoshk.dev
|
||||
|
||||
// @contact.name Santosh Kumar
|
||||
// @contact.url https://twitter.com/sntshk
|
||||
// @contact.email sntshkmr60@gmail.com
|
||||
|
||||
// @license.name Apache 2.0
|
||||
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
|
||||
// @host 10.10.150.181:8084
|
||||
// @BasePath /api
|
||||
|
||||
func main() {
|
||||
//docs.SwaggerInfo.Title = "Swagger Example API"
|
||||
//docs.SwaggerInfo.Description = "This is a sample server Petstore server."
|
||||
//docs.SwaggerInfo.Version = "1.0"
|
||||
//docs.SwaggerInfo.Host = "petstore.swagger.io"
|
||||
//docs.SwaggerInfo.BasePath = "/v2"
|
||||
//docs.SwaggerInfo.Schemes = []string{"http", "https"}
|
||||
server := server.NewServer()
|
||||
|
||||
// Create a done channel to signal when the shutdown is complete
|
||||
|
||||
Reference in New Issue
Block a user