mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-05 00:42:44 +08:00
27 lines
623 B
Go
27 lines
623 B
Go
// Package main is the http and grpc server of the application.
|
|
package main
|
|
|
|
import (
|
|
"github.com/zhufuyi/sponge/cmd/serverNameExample_mixExample/initial"
|
|
|
|
"github.com/zhufuyi/sponge/pkg/app"
|
|
)
|
|
|
|
// @title serverNameExample api docs
|
|
// @description http server api docs
|
|
// @schemes http https
|
|
// @version 2.0
|
|
// @host localhost:8080
|
|
// @securityDefinitions.apikey BearerAuth
|
|
// @in header
|
|
// @name Authorization
|
|
// @description Type "Bearer your-jwt-token" to Value
|
|
func main() {
|
|
initial.Config()
|
|
servers := initial.RegisterServers()
|
|
closes := initial.RegisterClose(servers)
|
|
|
|
a := app.New(servers, closes)
|
|
a.Run()
|
|
}
|