mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 06:19:20 +08:00
Feature: add direct connect mode with zookeeper, etcd, and k8s (#1775)
* fix: fix the bug
* fix: fix the imAdmin permission and searchNoficitaion resp
* 2023 Annual Summary Reflections and Aspirations
Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
* fix: dissmissGroup and lack of keyword bug (#1678)
* Update docker-start-all.sh
* Update env-template.yaml
* Update docker-start-all.sh
* fix openim config mongo passwd env
Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
* fix: fix some bug
* fix: group messages sync failed.
* fix: fix the valiable name
* fix: fix the getSortedConversation api
* fix: fix the mongo search error
* fix: GroupApplicationAcceptedNotification
(cherry picked from commit 4c3c4555a3)
* fix: GroupApplicationAcceptedNotification
* fix update friends
* fix pageFindUser
* Delete .devcontainer directory
* fix find user
* Your commit message here
* feat: direct conn
* fix: direct conn message gateway array exceed length
* fix: direct conn message gateway array exceed length
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: direct conn cannot find name
* fix: operation id invalid
* feat: multiple address
* feat: multiple address
* feat: multiple address
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: multiple addresses
* feat: direct conn with multiple ports
* Update user.go
* feat: direct conn with multiple ports
* feat: remove checkServiceHealth
* feat: update fmt error
* feat: update .devcontainer
* feat: update .devcontainer
* feat: update fmt.Errorf(
---------
Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
Co-authored-by: luhaoling <2198702716@qq.com>
Co-authored-by: Xinwei Xiong <3293172751@qq.com>
Co-authored-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
Co-authored-by: Brabem <69128477+luhaoling@users.noreply.github.com>
Co-authored-by: OpenIM Bot <124379614+kubbot@users.noreply.github.com>
Co-authored-by: OpenIM Robot <139873238+openimbot@users.noreply.github.com>
Co-authored-by: Gordon <46924906+FGadvancer@users.noreply.github.com>
Co-authored-by: withchao <993506633@qq.com>
This commit is contained in:
@@ -16,6 +16,7 @@ package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/OpenIMSDK/protocol/constant"
|
||||
@@ -43,7 +44,7 @@ import (
|
||||
)
|
||||
|
||||
func NewGinRouter(discov discoveryregistry.SvcDiscoveryRegistry, rdb redis.UniversalClient) *gin.Engine {
|
||||
discov.AddOption(mw.GrpcClient(), grpc.WithTransportCredentials(insecure.NewCredentials())) // 默认RPC中间件
|
||||
discov.AddOption(mw.GrpcClient(), grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, "round_robin"))) // 默认RPC中间件
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
r := gin.New()
|
||||
if v, ok := binding.Validator.Engine().(*validator.Validate); ok {
|
||||
|
||||
Reference in New Issue
Block a user