Kaynağa Gözat

添加接口

yjp 9 ay önce
ebeveyn
işleme
e69af67c83
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      http_binding/http_init.go

+ 4 - 0
http_binding/http_init.go

@@ -48,6 +48,10 @@ func Destroy() {
 	}
 }
 
+func GetServer() *http.Server {
+	return serverInstance
+}
+
 func GetRouter() *gin.Engine {
 	return routerInstance
 }