packet name pb

This commit is contained in:
withchao
2023-03-16 10:46:06 +08:00
parent 8437c9a38b
commit 17de3e7927
208 changed files with 25300 additions and 15564 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package apistruct
import (
sdkws "OpenIM/pkg/proto/sdkws"
sdkws "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
)
type KickGroupMemberReq struct {
+1 -1
View File
@@ -1,7 +1,7 @@
package apistruct
import (
sdkws "OpenIM/pkg/proto/sdkws"
sdkws "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
)
type DeleteUsersReq struct {
+2 -2
View File
@@ -1,8 +1,8 @@
package apistruct
import (
"OpenIM/pkg/proto/msg"
sdkws "OpenIM/pkg/proto/sdkws"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
sdkws "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
)
type DelMsgReq struct {
+1 -1
View File
@@ -1,8 +1,8 @@
package callbackstruct
import (
"OpenIM/pkg/errs"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
)
type CommonCallbackReq struct {
+2 -2
View File
@@ -1,8 +1,8 @@
package callbackstruct
import (
"OpenIM/pkg/apistruct"
common "OpenIM/pkg/proto/sdkws"
"github.com/OpenIMSDK/Open-IM-Server/pkg/apistruct"
common "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
)
type CallbackCommand string
+2 -2
View File
@@ -1,8 +1,8 @@
package callbackstruct
import (
"OpenIM/pkg/proto/msg"
sdkws "OpenIM/pkg/proto/sdkws"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
sdkws "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
)
type CallbackBeforeSendSingleMsgReq struct {
+1 -1
View File
@@ -1,6 +1,6 @@
package callbackstruct
import common "OpenIM/pkg/proto/sdkws"
import common "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
type CallbackBeforePushReq struct {
UserStatusBatchCallbackReq
+3 -3
View File
@@ -1,9 +1,9 @@
package cmd
import (
"OpenIM/internal/msggateway"
//"OpenIM/internal/msggateway"
"OpenIM/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/internal/msggateway"
//"github.com/OpenIMSDK/Open-IM-Server/internal/msggateway"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/spf13/cobra"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package cmd
import (
"OpenIM/internal/msgtransfer"
"github.com/OpenIMSDK/Open-IM-Server/internal/msgtransfer"
"github.com/spf13/cobra"
)
+1 -1
View File
@@ -1,8 +1,8 @@
package cmd
import (
"OpenIM/internal/tools"
"context"
"github.com/OpenIMSDK/Open-IM-Server/internal/tools"
"github.com/spf13/cobra"
)
+3 -3
View File
@@ -1,10 +1,10 @@
package cmd
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/log"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/spf13/cobra"
)
+2 -2
View File
@@ -1,8 +1,8 @@
package cmd
import (
"OpenIM/internal/startrpc"
"OpenIM/pkg/discoveryregistry"
"github.com/OpenIMSDK/Open-IM-Server/internal/startrpc"
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
"github.com/spf13/cobra"
"google.golang.org/grpc"
)
+1 -1
View File
@@ -1,8 +1,8 @@
package config
import (
"OpenIM/pkg/discoveryregistry"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
"io/ioutil"
"os"
"path/filepath"
+1 -1
View File
@@ -1,8 +1,8 @@
package cache
import (
"OpenIM/pkg/common/db/relation"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/relation"
"github.com/dtm-labs/rockscache"
"github.com/go-redis/redis/v8"
"time"
+3 -3
View File
@@ -1,10 +1,10 @@
package cache
import (
"OpenIM/pkg/common/db/relation"
relationTb "OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/relation"
relationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/dtm-labs/rockscache"
"github.com/go-redis/redis/v8"
"time"
+2 -2
View File
@@ -1,9 +1,9 @@
package cache
import (
"OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/dtm-labs/rockscache"
"time"
)
+3 -3
View File
@@ -1,11 +1,11 @@
package cache
import (
"OpenIM/pkg/common/db/relation"
relationTb "OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"encoding/json"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/relation"
relationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/dtm-labs/rockscache"
"github.com/go-redis/redis/v8"
"time"
+3 -3
View File
@@ -1,10 +1,10 @@
package cache
import (
relationTb "OpenIM/pkg/common/db/table/relation"
unrelation2 "OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/utils"
"context"
relationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
unrelation2 "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/dtm-labs/rockscache"
"github.com/go-redis/redis/v8"
"math/big"
+3 -3
View File
@@ -1,11 +1,11 @@
package cache
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/mw/specialerror"
"OpenIM/pkg/errs"
"context"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/mw/specialerror"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/go-redis/redis/v8"
"time"
)
+7 -7
View File
@@ -1,16 +1,16 @@
package cache
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/log"
"OpenIM/pkg/common/tracelog"
pbMsg "OpenIM/pkg/proto/msg"
"OpenIM/pkg/proto/sdkws"
"OpenIM/pkg/utils"
"context"
"errors"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tracelog"
pbMsg "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"strconv"
+1 -2
View File
@@ -1,16 +1,15 @@
package cache
import (
"OpenIM/pkg/utils"
"context"
"encoding/json"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/dtm-labs/rockscache"
"time"
)
const scanCount = 3000
func GetDefaultOpt() rockscache.Options {
opts := rockscache.NewDefaultOptions()
opts.StrongConsistency = true
+3 -3
View File
@@ -1,11 +1,11 @@
package cache
import (
"OpenIM/pkg/common/db/relation"
relationTb "OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"encoding/json"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/relation"
relationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/dtm-labs/rockscache"
"github.com/go-redis/redis/v8"
"strconv"
+4 -4
View File
@@ -1,11 +1,11 @@
package controller
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/cache"
"OpenIM/pkg/common/tokenverify"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tokenverify"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/golang-jwt/jwt/v4"
)
+2 -2
View File
@@ -1,10 +1,10 @@
package controller
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"errors"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+2 -2
View File
@@ -1,8 +1,8 @@
package controller
import (
relationTb "OpenIM/pkg/common/db/table/relation"
pbMsg "OpenIM/pkg/proto/msg"
relationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
pbMsg "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
)
type ChatLogDatabase interface {
+6 -6
View File
@@ -1,14 +1,14 @@
package controller
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/cache"
"OpenIM/pkg/common/db/relation"
relationTb "OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/common/db/tx"
"OpenIM/pkg/utils"
"context"
"encoding/json"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/relation"
relationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/tx"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
)
type ConversationDatabase interface {
+1 -1
View File
@@ -1,8 +1,8 @@
package controller
import (
unRelationTb "OpenIM/pkg/common/db/table/unrelation"
"context"
unRelationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
)
// for mongoDB
+5 -5
View File
@@ -1,13 +1,13 @@
package controller
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/common/db/tx"
"OpenIM/pkg/errs"
"OpenIM/pkg/utils"
"context"
"errors"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/tx"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+8 -8
View File
@@ -1,16 +1,16 @@
package controller
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/cache"
"OpenIM/pkg/common/db/relation"
relationTb "OpenIM/pkg/common/db/table/relation"
unRelationTb "OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/common/db/tx"
"OpenIM/pkg/common/db/unrelation"
"OpenIM/pkg/utils"
"context"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/relation"
relationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
unRelationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/tx"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/dtm-labs/rockscache"
_ "github.com/dtm-labs/rockscache"
"github.com/go-redis/redis/v8"
+12 -12
View File
@@ -1,25 +1,25 @@
package controller
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/cache"
unRelationTb "OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/common/db/unrelation"
"OpenIM/pkg/common/kafka"
"OpenIM/pkg/common/log"
"OpenIM/pkg/common/prome"
"OpenIM/pkg/common/tracelog"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
unRelationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/kafka"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/prome"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tracelog"
"github.com/gogo/protobuf/sortkeys"
"sync"
"time"
pbMsg "OpenIM/pkg/proto/msg"
"OpenIM/pkg/proto/sdkws"
"OpenIM/pkg/utils"
"context"
"errors"
pbMsg "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/go-redis/redis/v8"
"go.mongodb.org/mongo-driver/mongo"
+2 -2
View File
@@ -1,9 +1,9 @@
package controller
import (
"OpenIM/pkg/common/db/cache"
"OpenIM/pkg/proto/sdkws"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
)
type PushDatabase interface {
+7 -7
View File
@@ -2,18 +2,18 @@ package controller
import "C"
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/db/obj"
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/common/log"
"OpenIM/pkg/errs"
"OpenIM/pkg/proto/third"
"OpenIM/pkg/utils"
"context"
"crypto/md5"
"encoding/hex"
"errors"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/obj"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/third"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/google/uuid"
"path"
"strconv"
+2 -2
View File
@@ -1,9 +1,9 @@
package controller
import (
"OpenIM/pkg/common/db/cache"
"OpenIM/pkg/proto/sdkws"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
)
type ThirdDatabase interface {
+3 -3
View File
@@ -1,10 +1,10 @@
package controller
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/errs"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
)
type UserDatabase interface {
+3 -3
View File
@@ -1,10 +1,10 @@
package localcache
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/discoveryregistry"
"OpenIM/pkg/proto/conversation"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/conversation"
"sync"
)
+4 -4
View File
@@ -1,11 +1,11 @@
package localcache
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/discoveryregistry"
"OpenIM/pkg/errs"
"OpenIM/pkg/proto/group"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/group"
"sync"
)
+2 -2
View File
@@ -1,11 +1,11 @@
package obj
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/utils"
"context"
"errors"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
"github.com/minio/minio-go/v7/pkg/s3utils"
+2 -2
View File
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+5 -5
View File
@@ -1,12 +1,12 @@
package relation
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/table/relation"
pbMsg "OpenIM/pkg/proto/msg"
sdkws "OpenIM/pkg/proto/sdkws"
"OpenIM/pkg/utils"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
pbMsg "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
sdkws "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/golang/protobuf/jsonpb"
"github.com/golang/protobuf/proto"
"github.com/jinzhu/copier"
+3 -3
View File
@@ -1,10 +1,10 @@
package relation
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+2 -2
View File
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+3 -3
View File
@@ -1,10 +1,10 @@
package relation
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+2 -2
View File
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+4 -4
View File
@@ -1,12 +1,12 @@
package relation
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/log"
"OpenIM/pkg/common/mw/specialerror"
"OpenIM/pkg/errs"
"context"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/mw/specialerror"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
mysqlDriver "github.com/go-sql-driver/mysql"
"gorm.io/driver/mysql"
"strings"
+2 -2
View File
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+2 -2
View File
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
"time"
)
+2 -2
View File
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
"time"
)
+2 -2
View File
@@ -1,9 +1,9 @@
package relation
import (
"OpenIM/pkg/common/db/table/relation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/relation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+1 -1
View File
@@ -1,7 +1,7 @@
package relation
import (
"OpenIM/pkg/utils"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package relation
import (
"time"
pbMsg "OpenIM/pkg/proto/msg"
pbMsg "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg"
)
const (
+1 -1
View File
@@ -1,7 +1,7 @@
package relation
import (
"OpenIM/pkg/utils"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"gorm.io/gorm"
)
@@ -1,8 +1,8 @@
package unrelation
import (
"OpenIM/pkg/proto/sdkws"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
"strconv"
"strings"
)
+2 -2
View File
@@ -1,9 +1,9 @@
package unrelation
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/proto/sdkws"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
"strconv"
"strings"
)
+1 -1
View File
@@ -1,8 +1,8 @@
package tx
import (
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"go.mongodb.org/mongo-driver/mongo"
)
+2 -2
View File
@@ -1,11 +1,11 @@
package unrelation
import (
unRelationTb "OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/utils"
"context"
"errors"
"fmt"
unRelationTb "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
+5 -5
View File
@@ -1,13 +1,13 @@
package unrelation
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/common/mw/specialerror"
"OpenIM/pkg/errs"
"OpenIM/pkg/utils"
"context"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/mw/specialerror"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/x/bsonx"
+3 -3
View File
@@ -1,12 +1,12 @@
package unrelation
import (
table "OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/proto/sdkws"
"OpenIM/pkg/utils"
"context"
"errors"
"fmt"
table "github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/golang/protobuf/proto"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
+2 -2
View File
@@ -1,9 +1,9 @@
package unrelation
import (
"OpenIM/pkg/common/db/table/unrelation"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/table/unrelation"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
+3 -3
View File
@@ -7,11 +7,11 @@
package http
import (
"OpenIM/pkg/callbackstruct"
"OpenIM/pkg/common/config"
"OpenIM/pkg/errs"
"bytes"
"encoding/json"
"github.com/OpenIMSDK/Open-IM-Server/pkg/callbackstruct"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"io/ioutil"
"net/http"
urlLib "net/url"
+1 -1
View File
@@ -1,7 +1,7 @@
package kafka
import (
"OpenIM/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"sync"
"github.com/Shopify/sarama"
+2 -2
View File
@@ -7,9 +7,9 @@
package kafka
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/tracelog"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tracelog"
"github.com/Shopify/sarama"
)
+6 -6
View File
@@ -1,18 +1,18 @@
package kafka
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/constant"
log "OpenIM/pkg/common/log"
"OpenIM/pkg/common/tracelog"
"OpenIM/pkg/utils"
"context"
"errors"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
log "github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tracelog"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/Shopify/sarama"
"github.com/golang/protobuf/proto"
prome "OpenIM/pkg/common/prome"
prome "github.com/OpenIMSDK/Open-IM-Server/pkg/common/prome"
)
type Producer struct {
+6 -6
View File
@@ -7,9 +7,9 @@
package log
import (
"OpenIM/pkg/common/config"
"context"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
elasticV7 "github.com/olivere/elastic/v7"
"github.com/sirupsen/logrus"
"log"
@@ -18,13 +18,13 @@ import (
"time"
)
//esHook CUSTOMIZED ES hook
// esHook CUSTOMIZED ES hook
type esHook struct {
moduleName string
client *elasticV7.Client
}
//newEsHook Initialization
// newEsHook Initialization
func newEsHook(moduleName string) *esHook {
//https://github.com/sohlich/elogrus
//client, err := elastic.NewClient(elastic.SetURL("http://localhost:9200"))
@@ -61,7 +61,7 @@ func newEsHook(moduleName string) *esHook {
return &esHook{client: es, moduleName: moduleName}
}
//Fire log hook interface
// Fire log hook interface
func (hook *esHook) Fire(entry *logrus.Entry) error {
doc := newEsLog(entry)
go hook.sendEs(doc)
@@ -72,7 +72,7 @@ func (hook *esHook) Levels() []logrus.Level {
return logrus.AllLevels
}
//sendEs
// sendEs
func (hook *esHook) sendEs(doc appLogDocModel) {
defer func() {
if r := recover(); r != nil {
@@ -86,7 +86,7 @@ func (hook *esHook) sendEs(doc appLogDocModel) {
}
//appLogDocModel es model
// appLogDocModel es model
type appLogDocModel map[string]interface{}
func newEsLog(e *logrus.Entry) appLogDocModel {
+1 -1
View File
@@ -7,7 +7,7 @@
package log
import (
"OpenIM/pkg/utils"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/sirupsen/logrus"
"runtime"
"strings"
+1 -1
View File
@@ -1,7 +1,7 @@
package log
import (
"OpenIM/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
nested "github.com/antonfisher/nested-logrus-formatter"
rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"github.com/rifflock/lfshook"
+4 -4
View File
@@ -1,10 +1,10 @@
package log
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/tracelog"
"bufio"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tracelog"
//"bufio"
"fmt"
@@ -128,7 +128,7 @@ func Debug(OperationID string, args ...interface{}) {
}).Debugln(args)
}
//Deprecated
// Deprecated
func Warning(token, OperationID, format string, args ...interface{}) {
logger.WithFields(logrus.Fields{
"PID": logger.Pid,
@@ -137,7 +137,7 @@ func Warning(token, OperationID, format string, args ...interface{}) {
}
//internal method
// internal method
func argsHandle(OperationID string, fields logrus.Fields, args []interface{}) {
for i := 0; i < len(args); i += 2 {
if i+1 < len(args) {
+3 -3
View File
@@ -1,10 +1,10 @@
package log
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/tracelog"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tracelog"
rotatelogs "github.com/lestrrat-go/file-rotatelogs"
"os"
"path/filepath"
+1 -1
View File
@@ -1,9 +1,9 @@
package mw
import (
"OpenIM/pkg/common/constant"
"bytes"
"encoding/json"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/gin-gonic/gin"
"io"
"net/http"
+3 -3
View File
@@ -1,11 +1,11 @@
package mw
import (
"OpenIM/pkg/common/constant"
"OpenIM/pkg/common/log"
"OpenIM/pkg/errs"
"context"
"errors"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
+4 -4
View File
@@ -1,12 +1,12 @@
package mw
import (
"OpenIM/pkg/common/log"
"OpenIM/pkg/common/mw/specialerror"
"OpenIM/pkg/errs"
"OpenIM/pkg/proto/wrapperspb"
"context"
"fmt"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/mw/specialerror"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/proto/wrapperspb"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
+1 -1
View File
@@ -1,6 +1,6 @@
package specialerror
import "OpenIM/pkg/errs"
import "github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
var handlers []func(err error) errs.CodeError
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"time"
"OpenIM/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"google.golang.org/grpc"
"google.golang.org/grpc/peer"
+1 -1
View File
@@ -1,8 +1,8 @@
package prome
import (
"OpenIM/pkg/common/config"
"bytes"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"net/http"
"strconv"
+4 -4
View File
@@ -1,11 +1,11 @@
package tokenverify
import (
"OpenIM/pkg/common/config"
"OpenIM/pkg/common/tracelog"
"OpenIM/pkg/errs"
"OpenIM/pkg/utils"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tracelog"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
"github.com/golang-jwt/jwt/v4"
"time"
)
+1 -1
View File
@@ -1,8 +1,8 @@
package tracelog
import (
"OpenIM/pkg/common/constant"
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/constant"
)
func NewCtx(operationID string) context.Context {
+468 -248
View File
@@ -1,307 +1,540 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.1
// protoc v4.22.0
// source: auth/auth.proto
package pbAuth // import "OpenIM/pkg/proto/auth"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
package auth
import (
context "golang.org/x/net/context"
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type UserTokenReq struct {
PlatformID int32 `protobuf:"varint,1,opt,name=platformID" json:"platformID,omitempty"`
UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PlatformID int32 `protobuf:"varint,1,opt,name=platformID,proto3" json:"platformID"`
UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"`
}
func (m *UserTokenReq) Reset() { *m = UserTokenReq{} }
func (m *UserTokenReq) String() string { return proto.CompactTextString(m) }
func (*UserTokenReq) ProtoMessage() {}
func (x *UserTokenReq) Reset() {
*x = UserTokenReq{}
if protoimpl.UnsafeEnabled {
mi := &file_auth_auth_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserTokenReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserTokenReq) ProtoMessage() {}
func (x *UserTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_auth_auth_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserTokenReq.ProtoReflect.Descriptor instead.
func (*UserTokenReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_e4a939906f8bb8e6, []int{0}
}
func (m *UserTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserTokenReq.Unmarshal(m, b)
}
func (m *UserTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserTokenReq.Marshal(b, m, deterministic)
}
func (dst *UserTokenReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserTokenReq.Merge(dst, src)
}
func (m *UserTokenReq) XXX_Size() int {
return xxx_messageInfo_UserTokenReq.Size(m)
}
func (m *UserTokenReq) XXX_DiscardUnknown() {
xxx_messageInfo_UserTokenReq.DiscardUnknown(m)
return file_auth_auth_proto_rawDescGZIP(), []int{0}
}
var xxx_messageInfo_UserTokenReq proto.InternalMessageInfo
func (m *UserTokenReq) GetPlatformID() int32 {
if m != nil {
return m.PlatformID
func (x *UserTokenReq) GetPlatformID() int32 {
if x != nil {
return x.PlatformID
}
return 0
}
func (m *UserTokenReq) GetUserID() string {
if m != nil {
return m.UserID
func (x *UserTokenReq) GetUserID() string {
if x != nil {
return x.UserID
}
return ""
}
type UserTokenResp struct {
Token string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
ExpireTimeSeconds int64 `protobuf:"varint,3,opt,name=expireTimeSeconds" json:"expireTimeSeconds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token"`
ExpireTimeSeconds int64 `protobuf:"varint,3,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds"`
}
func (m *UserTokenResp) Reset() { *m = UserTokenResp{} }
func (m *UserTokenResp) String() string { return proto.CompactTextString(m) }
func (*UserTokenResp) ProtoMessage() {}
func (x *UserTokenResp) Reset() {
*x = UserTokenResp{}
if protoimpl.UnsafeEnabled {
mi := &file_auth_auth_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UserTokenResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserTokenResp) ProtoMessage() {}
func (x *UserTokenResp) ProtoReflect() protoreflect.Message {
mi := &file_auth_auth_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UserTokenResp.ProtoReflect.Descriptor instead.
func (*UserTokenResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_e4a939906f8bb8e6, []int{1}
}
func (m *UserTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserTokenResp.Unmarshal(m, b)
}
func (m *UserTokenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserTokenResp.Marshal(b, m, deterministic)
}
func (dst *UserTokenResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserTokenResp.Merge(dst, src)
}
func (m *UserTokenResp) XXX_Size() int {
return xxx_messageInfo_UserTokenResp.Size(m)
}
func (m *UserTokenResp) XXX_DiscardUnknown() {
xxx_messageInfo_UserTokenResp.DiscardUnknown(m)
return file_auth_auth_proto_rawDescGZIP(), []int{1}
}
var xxx_messageInfo_UserTokenResp proto.InternalMessageInfo
func (m *UserTokenResp) GetToken() string {
if m != nil {
return m.Token
func (x *UserTokenResp) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (m *UserTokenResp) GetExpireTimeSeconds() int64 {
if m != nil {
return m.ExpireTimeSeconds
func (x *UserTokenResp) GetExpireTimeSeconds() int64 {
if x != nil {
return x.ExpireTimeSeconds
}
return 0
}
type ForceLogoutReq struct {
PlatformID int32 `protobuf:"varint,1,opt,name=platformID" json:"platformID,omitempty"`
UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PlatformID int32 `protobuf:"varint,1,opt,name=platformID,proto3" json:"platformID"`
UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID"`
}
func (m *ForceLogoutReq) Reset() { *m = ForceLogoutReq{} }
func (m *ForceLogoutReq) String() string { return proto.CompactTextString(m) }
func (*ForceLogoutReq) ProtoMessage() {}
func (x *ForceLogoutReq) Reset() {
*x = ForceLogoutReq{}
if protoimpl.UnsafeEnabled {
mi := &file_auth_auth_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForceLogoutReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForceLogoutReq) ProtoMessage() {}
func (x *ForceLogoutReq) ProtoReflect() protoreflect.Message {
mi := &file_auth_auth_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForceLogoutReq.ProtoReflect.Descriptor instead.
func (*ForceLogoutReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_e4a939906f8bb8e6, []int{2}
}
func (m *ForceLogoutReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ForceLogoutReq.Unmarshal(m, b)
}
func (m *ForceLogoutReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ForceLogoutReq.Marshal(b, m, deterministic)
}
func (dst *ForceLogoutReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_ForceLogoutReq.Merge(dst, src)
}
func (m *ForceLogoutReq) XXX_Size() int {
return xxx_messageInfo_ForceLogoutReq.Size(m)
}
func (m *ForceLogoutReq) XXX_DiscardUnknown() {
xxx_messageInfo_ForceLogoutReq.DiscardUnknown(m)
return file_auth_auth_proto_rawDescGZIP(), []int{2}
}
var xxx_messageInfo_ForceLogoutReq proto.InternalMessageInfo
func (m *ForceLogoutReq) GetPlatformID() int32 {
if m != nil {
return m.PlatformID
func (x *ForceLogoutReq) GetPlatformID() int32 {
if x != nil {
return x.PlatformID
}
return 0
}
func (m *ForceLogoutReq) GetUserID() string {
if m != nil {
return m.UserID
func (x *ForceLogoutReq) GetUserID() string {
if x != nil {
return x.UserID
}
return ""
}
type ForceLogoutResp struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (m *ForceLogoutResp) Reset() { *m = ForceLogoutResp{} }
func (m *ForceLogoutResp) String() string { return proto.CompactTextString(m) }
func (*ForceLogoutResp) ProtoMessage() {}
func (x *ForceLogoutResp) Reset() {
*x = ForceLogoutResp{}
if protoimpl.UnsafeEnabled {
mi := &file_auth_auth_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForceLogoutResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForceLogoutResp) ProtoMessage() {}
func (x *ForceLogoutResp) ProtoReflect() protoreflect.Message {
mi := &file_auth_auth_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForceLogoutResp.ProtoReflect.Descriptor instead.
func (*ForceLogoutResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_e4a939906f8bb8e6, []int{3}
return file_auth_auth_proto_rawDescGZIP(), []int{3}
}
func (m *ForceLogoutResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ForceLogoutResp.Unmarshal(m, b)
}
func (m *ForceLogoutResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ForceLogoutResp.Marshal(b, m, deterministic)
}
func (dst *ForceLogoutResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ForceLogoutResp.Merge(dst, src)
}
func (m *ForceLogoutResp) XXX_Size() int {
return xxx_messageInfo_ForceLogoutResp.Size(m)
}
func (m *ForceLogoutResp) XXX_DiscardUnknown() {
xxx_messageInfo_ForceLogoutResp.DiscardUnknown(m)
}
var xxx_messageInfo_ForceLogoutResp proto.InternalMessageInfo
type ParseTokenReq struct {
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token"`
}
func (m *ParseTokenReq) Reset() { *m = ParseTokenReq{} }
func (m *ParseTokenReq) String() string { return proto.CompactTextString(m) }
func (*ParseTokenReq) ProtoMessage() {}
func (x *ParseTokenReq) Reset() {
*x = ParseTokenReq{}
if protoimpl.UnsafeEnabled {
mi := &file_auth_auth_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ParseTokenReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ParseTokenReq) ProtoMessage() {}
func (x *ParseTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_auth_auth_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ParseTokenReq.ProtoReflect.Descriptor instead.
func (*ParseTokenReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_e4a939906f8bb8e6, []int{4}
}
func (m *ParseTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseTokenReq.Unmarshal(m, b)
}
func (m *ParseTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParseTokenReq.Marshal(b, m, deterministic)
}
func (dst *ParseTokenReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParseTokenReq.Merge(dst, src)
}
func (m *ParseTokenReq) XXX_Size() int {
return xxx_messageInfo_ParseTokenReq.Size(m)
}
func (m *ParseTokenReq) XXX_DiscardUnknown() {
xxx_messageInfo_ParseTokenReq.DiscardUnknown(m)
return file_auth_auth_proto_rawDescGZIP(), []int{4}
}
var xxx_messageInfo_ParseTokenReq proto.InternalMessageInfo
func (m *ParseTokenReq) GetToken() string {
if m != nil {
return m.Token
func (x *ParseTokenReq) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type ParseTokenResp struct {
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
Platform string `protobuf:"bytes,2,opt,name=platform" json:"platform,omitempty"`
ExpireTimeSeconds int64 `protobuf:"varint,4,opt,name=expireTimeSeconds" json:"expireTimeSeconds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"`
Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
ExpireTimeSeconds int64 `protobuf:"varint,4,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds"`
}
func (m *ParseTokenResp) Reset() { *m = ParseTokenResp{} }
func (m *ParseTokenResp) String() string { return proto.CompactTextString(m) }
func (*ParseTokenResp) ProtoMessage() {}
func (x *ParseTokenResp) Reset() {
*x = ParseTokenResp{}
if protoimpl.UnsafeEnabled {
mi := &file_auth_auth_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ParseTokenResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ParseTokenResp) ProtoMessage() {}
func (x *ParseTokenResp) ProtoReflect() protoreflect.Message {
mi := &file_auth_auth_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ParseTokenResp.ProtoReflect.Descriptor instead.
func (*ParseTokenResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_e4a939906f8bb8e6, []int{5}
}
func (m *ParseTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseTokenResp.Unmarshal(m, b)
}
func (m *ParseTokenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParseTokenResp.Marshal(b, m, deterministic)
}
func (dst *ParseTokenResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParseTokenResp.Merge(dst, src)
}
func (m *ParseTokenResp) XXX_Size() int {
return xxx_messageInfo_ParseTokenResp.Size(m)
}
func (m *ParseTokenResp) XXX_DiscardUnknown() {
xxx_messageInfo_ParseTokenResp.DiscardUnknown(m)
return file_auth_auth_proto_rawDescGZIP(), []int{5}
}
var xxx_messageInfo_ParseTokenResp proto.InternalMessageInfo
func (m *ParseTokenResp) GetUserID() string {
if m != nil {
return m.UserID
func (x *ParseTokenResp) GetUserID() string {
if x != nil {
return x.UserID
}
return ""
}
func (m *ParseTokenResp) GetPlatform() string {
if m != nil {
return m.Platform
func (x *ParseTokenResp) GetPlatform() string {
if x != nil {
return x.Platform
}
return ""
}
func (m *ParseTokenResp) GetExpireTimeSeconds() int64 {
if m != nil {
return m.ExpireTimeSeconds
func (x *ParseTokenResp) GetExpireTimeSeconds() int64 {
if x != nil {
return x.ExpireTimeSeconds
}
return 0
}
func init() {
proto.RegisterType((*UserTokenReq)(nil), "OpenIMServer.pbAuth.userTokenReq")
proto.RegisterType((*UserTokenResp)(nil), "OpenIMServer.pbAuth.userTokenResp")
proto.RegisterType((*ForceLogoutReq)(nil), "OpenIMServer.pbAuth.forceLogoutReq")
proto.RegisterType((*ForceLogoutResp)(nil), "OpenIMServer.pbAuth.forceLogoutResp")
proto.RegisterType((*ParseTokenReq)(nil), "OpenIMServer.pbAuth.parseTokenReq")
proto.RegisterType((*ParseTokenResp)(nil), "OpenIMServer.pbAuth.parseTokenResp")
var File_auth_auth_proto protoreflect.FileDescriptor
var file_auth_auth_proto_rawDesc = []byte{
0x0a, 0x0f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e,
0x61, 0x75, 0x74, 0x68, 0x22, 0x46, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
0x72, 0x6d, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x22, 0x53, 0x0a, 0x0d,
0x75, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a,
0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
0x6b, 0x65, 0x6e, 0x12, 0x2c, 0x0a, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d,
0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11,
0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x73, 0x22, 0x48, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74,
0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49,
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x6d, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x22, 0x11, 0x0a, 0x0f, 0x66,
0x6f, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x25,
0x0a, 0x0d, 0x70, 0x61, 0x72, 0x73, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12,
0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x72, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x54, 0x6f,
0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12,
0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x2c, 0x0a, 0x11, 0x65,
0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73,
0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69,
0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x32, 0xff, 0x01, 0x0a, 0x04, 0x41, 0x75,
0x74, 0x68, 0x12, 0x4e, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x1f, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x61,
0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71,
0x1a, 0x20, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e,
0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65,
0x73, 0x70, 0x12, 0x54, 0x0a, 0x0b, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x67, 0x6f, 0x75,
0x74, 0x12, 0x21, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x67, 0x6f, 0x75,
0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72,
0x76, 0x65, 0x72, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4c, 0x6f,
0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x73,
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49,
0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x61, 0x72,
0x73, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x42, 0x34, 0x5a, 0x32, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d,
0x53, 0x44, 0x4b, 0x2f, 0x4f, 0x70, 0x65, 0x6e, 0x2d, 0x49, 0x4d, 0x2d, 0x53, 0x65, 0x72, 0x76,
0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x75, 0x74,
0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_auth_auth_proto_rawDescOnce sync.Once
file_auth_auth_proto_rawDescData = file_auth_auth_proto_rawDesc
)
func file_auth_auth_proto_rawDescGZIP() []byte {
file_auth_auth_proto_rawDescOnce.Do(func() {
file_auth_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_auth_proto_rawDescData)
})
return file_auth_auth_proto_rawDescData
}
var file_auth_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_auth_auth_proto_goTypes = []interface{}{
(*UserTokenReq)(nil), // 0: OpenIMServer.auth.userTokenReq
(*UserTokenResp)(nil), // 1: OpenIMServer.auth.userTokenResp
(*ForceLogoutReq)(nil), // 2: OpenIMServer.auth.forceLogoutReq
(*ForceLogoutResp)(nil), // 3: OpenIMServer.auth.forceLogoutResp
(*ParseTokenReq)(nil), // 4: OpenIMServer.auth.parseTokenReq
(*ParseTokenResp)(nil), // 5: OpenIMServer.auth.parseTokenResp
}
var file_auth_auth_proto_depIdxs = []int32{
0, // 0: OpenIMServer.auth.Auth.userToken:input_type -> OpenIMServer.auth.userTokenReq
2, // 1: OpenIMServer.auth.Auth.forceLogout:input_type -> OpenIMServer.auth.forceLogoutReq
4, // 2: OpenIMServer.auth.Auth.parseToken:input_type -> OpenIMServer.auth.parseTokenReq
1, // 3: OpenIMServer.auth.Auth.userToken:output_type -> OpenIMServer.auth.userTokenResp
3, // 4: OpenIMServer.auth.Auth.forceLogout:output_type -> OpenIMServer.auth.forceLogoutResp
5, // 5: OpenIMServer.auth.Auth.parseToken:output_type -> OpenIMServer.auth.parseTokenResp
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_auth_auth_proto_init() }
func file_auth_auth_proto_init() {
if File_auth_auth_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_auth_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserTokenReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_auth_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UserTokenResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_auth_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForceLogoutReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_auth_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForceLogoutResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_auth_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ParseTokenReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_auth_auth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ParseTokenResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_auth_auth_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_auth_auth_proto_goTypes,
DependencyIndexes: file_auth_auth_proto_depIdxs,
MessageInfos: file_auth_auth_proto_msgTypes,
}.Build()
File_auth_auth_proto = out.File
file_auth_auth_proto_rawDesc = nil
file_auth_auth_proto_goTypes = nil
file_auth_auth_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Auth service
const _ = grpc.SupportPackageIsVersion6
// AuthClient is the client API for Auth service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type AuthClient interface {
// 生成token
UserToken(ctx context.Context, in *UserTokenReq, opts ...grpc.CallOption) (*UserTokenResp, error)
@@ -312,16 +545,16 @@ type AuthClient interface {
}
type authClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewAuthClient(cc *grpc.ClientConn) AuthClient {
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient {
return &authClient{cc}
}
func (c *authClient) UserToken(ctx context.Context, in *UserTokenReq, opts ...grpc.CallOption) (*UserTokenResp, error) {
out := new(UserTokenResp)
err := grpc.Invoke(ctx, "/OpenIMServer.pbAuth.Auth/userToken", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/OpenIMServer.auth.Auth/userToken", in, out, opts...)
if err != nil {
return nil, err
}
@@ -330,7 +563,7 @@ func (c *authClient) UserToken(ctx context.Context, in *UserTokenReq, opts ...gr
func (c *authClient) ForceLogout(ctx context.Context, in *ForceLogoutReq, opts ...grpc.CallOption) (*ForceLogoutResp, error) {
out := new(ForceLogoutResp)
err := grpc.Invoke(ctx, "/OpenIMServer.pbAuth.Auth/forceLogout", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/OpenIMServer.auth.Auth/forceLogout", in, out, opts...)
if err != nil {
return nil, err
}
@@ -339,15 +572,14 @@ func (c *authClient) ForceLogout(ctx context.Context, in *ForceLogoutReq, opts .
func (c *authClient) ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error) {
out := new(ParseTokenResp)
err := grpc.Invoke(ctx, "/OpenIMServer.pbAuth.Auth/parseToken", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/OpenIMServer.auth.Auth/parseToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Auth service
// AuthServer is the server API for Auth service.
type AuthServer interface {
// 生成token
UserToken(context.Context, *UserTokenReq) (*UserTokenResp, error)
@@ -357,6 +589,20 @@ type AuthServer interface {
ParseToken(context.Context, *ParseTokenReq) (*ParseTokenResp, error)
}
// UnimplementedAuthServer can be embedded to have forward compatible implementations.
type UnimplementedAuthServer struct {
}
func (*UnimplementedAuthServer) UserToken(context.Context, *UserTokenReq) (*UserTokenResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method UserToken not implemented")
}
func (*UnimplementedAuthServer) ForceLogout(context.Context, *ForceLogoutReq) (*ForceLogoutResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ForceLogout not implemented")
}
func (*UnimplementedAuthServer) ParseToken(context.Context, *ParseTokenReq) (*ParseTokenResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method ParseToken not implemented")
}
func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
s.RegisterService(&_Auth_serviceDesc, srv)
}
@@ -371,7 +617,7 @@ func _Auth_UserToken_Handler(srv interface{}, ctx context.Context, dec func(inte
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/OpenIMServer.pbAuth.Auth/UserToken",
FullMethod: "/OpenIMServer.auth.Auth/UserToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).UserToken(ctx, req.(*UserTokenReq))
@@ -389,7 +635,7 @@ func _Auth_ForceLogout_Handler(srv interface{}, ctx context.Context, dec func(in
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/OpenIMServer.pbAuth.Auth/ForceLogout",
FullMethod: "/OpenIMServer.auth.Auth/ForceLogout",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).ForceLogout(ctx, req.(*ForceLogoutReq))
@@ -407,7 +653,7 @@ func _Auth_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(int
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/OpenIMServer.pbAuth.Auth/ParseToken",
FullMethod: "/OpenIMServer.auth.Auth/ParseToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).ParseToken(ctx, req.(*ParseTokenReq))
@@ -416,7 +662,7 @@ func _Auth_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(int
}
var _Auth_serviceDesc = grpc.ServiceDesc{
ServiceName: "OpenIMServer.pbAuth.Auth",
ServiceName: "OpenIMServer.auth.Auth",
HandlerType: (*AuthServer)(nil),
Methods: []grpc.MethodDesc{
{
@@ -435,29 +681,3 @@ var _Auth_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{},
Metadata: "auth/auth.proto",
}
func init() { proto.RegisterFile("auth/auth.proto", fileDescriptor_auth_e4a939906f8bb8e6) }
var fileDescriptor_auth_e4a939906f8bb8e6 = []byte{
// 320 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xdf, 0x4b, 0x02, 0x41,
0x10, 0xc7, 0x59, 0x7f, 0x91, 0x53, 0x2a, 0x4e, 0x11, 0x72, 0x84, 0xd8, 0x5a, 0xe0, 0x43, 0x9c,
0x50, 0x8f, 0x3d, 0x15, 0x12, 0x09, 0x45, 0x70, 0x1a, 0x44, 0x6f, 0x6a, 0xe3, 0x0f, 0x4c, 0x77,
0xda, 0xdd, 0x8b, 0xfe, 0x87, 0xfe, 0xe9, 0x38, 0xb5, 0x6b, 0xa5, 0x8b, 0x7b, 0xe8, 0xe5, 0xe0,
0xbb, 0xf7, 0xd9, 0x9d, 0xef, 0x7c, 0x67, 0xa0, 0x32, 0x08, 0xed, 0xb4, 0x1d, 0x7d, 0x7c, 0xd6,
0xca, 0x2a, 0xdc, 0x7f, 0x60, 0x5a, 0x76, 0xef, 0x7b, 0xa4, 0xdf, 0x49, 0xfb, 0x3c, 0xbc, 0x0a,
0xed, 0x54, 0xde, 0xc0, 0x5e, 0x68, 0x48, 0xf7, 0xd5, 0x9c, 0x96, 0x01, 0xbd, 0x61, 0x1d, 0x80,
0x5f, 0x07, 0x76, 0xac, 0xf4, 0xa2, 0xdb, 0xa9, 0x89, 0x86, 0x68, 0xe5, 0x03, 0xe7, 0x04, 0x0f,
0xa1, 0x10, 0xf1, 0xdd, 0x4e, 0x2d, 0xd3, 0x10, 0xad, 0x62, 0xb0, 0x51, 0xb2, 0x07, 0x25, 0xe7,
0x1d, 0xc3, 0x78, 0x00, 0x79, 0x1b, 0x89, 0x0d, 0xb7, 0x16, 0x78, 0x06, 0x55, 0xfa, 0xe0, 0x99,
0xa6, 0xfe, 0x6c, 0x41, 0x3d, 0x1a, 0xa9, 0xe5, 0x8b, 0xa9, 0x65, 0x1b, 0xa2, 0x95, 0x0d, 0x7e,
0xff, 0x90, 0xb7, 0x50, 0x1e, 0x2b, 0x3d, 0xa2, 0x3b, 0x35, 0x51, 0xa1, 0xfd, 0x8f, 0xbd, 0x2a,
0x54, 0xb6, 0x5e, 0x32, 0x2c, 0x4f, 0xa1, 0xc4, 0x03, 0x6d, 0x28, 0x6e, 0x3d, 0x76, 0x2c, 0x1c,
0xc7, 0x52, 0x43, 0xd9, 0xc5, 0x0c, 0x3b, 0x35, 0x84, 0x5b, 0x03, 0x3d, 0xd8, 0xf9, 0x76, 0xb2,
0xa9, 0x1e, 0xeb, 0xe4, 0xbe, 0x73, 0x7f, 0xf4, 0x7d, 0xfe, 0x99, 0x81, 0x5c, 0x34, 0x1d, 0x0c,
0xa0, 0x18, 0xa7, 0x8a, 0xc7, 0x7e, 0xc2, 0x00, 0x7d, 0x77, 0x7a, 0x9e, 0x4c, 0x43, 0x0c, 0xe3,
0x13, 0xec, 0x3a, 0x51, 0x60, 0x33, 0xf1, 0xca, 0x76, 0xec, 0xde, 0x49, 0x3a, 0x64, 0x18, 0x1f,
0x01, 0x7e, 0xa2, 0xc2, 0x64, 0x2f, 0x5b, 0x91, 0x7b, 0xcd, 0x54, 0xc6, 0xf0, 0x75, 0xfd, 0xf9,
0x68, 0x4d, 0xb5, 0x79, 0x3e, 0x69, 0xaf, 0x76, 0x79, 0xb5, 0xd6, 0x97, 0x6b, 0x7c, 0x58, 0x58,
0x1d, 0x5d, 0x7c, 0x05, 0x00, 0x00, 0xff, 0xff, 0x40, 0xb2, 0x28, 0x6e, 0xf1, 0x02, 0x00, 0x00,
}
+2 -2
View File
@@ -1,6 +1,6 @@
syntax = "proto3";
package OpenIMServer.pbAuth;
option go_package = "OpenIM/pkg/proto/auth;pbAuth";
package OpenIMServer.auth;
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/auth";
message userTokenReq {
-29
View File
@@ -1,29 +0,0 @@
#!/usr/bin/env bash
source ./proto_dir.cfg
for ((i = 0; i < ${#all_proto[*]}; i++)); do
proto=${all_proto[$i]}
protoc -I ../../../ -I ./ --go_out=plugins=grpc:. $proto
echo "protoc --go_out=plugins=grpc:." $proto
done
echo "proto file generate success"
j=0
for file in $(find ./OpenIM -name "*.go"); do # Not recommended, will break on whitespace
filelist[j]=$file
j=`expr $j + 1`
done
for ((i = 0; i < ${#filelist[*]}; i++)); do
proto=${filelist[$i]}
cp $proto ${proto#*./OpenIM/pkg/proto/}
done
rm OpenIM -rf
#find ./ -type f -path "*.pb.go"|xargs sed -i 's/\".\/sdkws\"/\"OpenIM\/pkg\/proto\/sdkws\"/g'
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,5 +1,5 @@
syntax = "proto3";
option go_package = "OpenIM/pkg/proto/conversation;conversation";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/conversation";
package OpenIMServer.conversation;
message Conversation{
+2014 -1054
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,6 +1,6 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
option go_package = "OpenIM/pkg/proto/friend;friend";
import "sdkws/sdkws.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/friend";
package OpenIMServer.friend;
message getPaginationFriendsReq{
+12
View File
@@ -0,0 +1,12 @@
protoc --go_out=plugins=grpc:./auth --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/auth auth/auth.proto
protoc --go_out=plugins=grpc:./conversation --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/conversation conversation/conversation.proto
protoc --go_out=plugins=grpc:./friend --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/friend friend/friend.proto
protoc --go_out=plugins=grpc:./group --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/group group/group.proto
protoc --go_out=plugins=grpc:./msg --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg msg/msg.proto
protoc --go_out=plugins=grpc:./msggateway --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msggateway msggateway/msggateway.proto
protoc --go_out=plugins=grpc:./push --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/push push/push.proto
protoc --go_out=plugins=grpc:./rtc --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/rtc rtc/rtc.proto
protoc --go_out=plugins=grpc:./sdkws --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws sdkws/sdkws.proto
protoc --go_out=plugins=grpc:./third --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/third third/third.proto
protoc --go_out=plugins=grpc:./user --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/user user/user.proto
protoc --go_out=plugins=grpc:./wrapperspb --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/wrapperspb wrapperspb/wrapperspb.proto
+12
View File
@@ -0,0 +1,12 @@
protoc --go_out=plugins=grpc:./auth --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/auth auth/auth.proto
protoc --go_out=plugins=grpc:./conversation --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/conversation conversation/conversation.proto
protoc --go_out=plugins=grpc:./friend --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/friend friend/friend.proto
protoc --go_out=plugins=grpc:./group --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/group group/group.proto
protoc --go_out=plugins=grpc:./msg --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg msg/msg.proto
protoc --go_out=plugins=grpc:./msggateway --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msggateway msggateway/msggateway.proto
protoc --go_out=plugins=grpc:./push --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/push push/push.proto
protoc --go_out=plugins=grpc:./rtc --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/rtc rtc/rtc.proto
protoc --go_out=plugins=grpc:./sdkws --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws sdkws/sdkws.proto
protoc --go_out=plugins=grpc:./third --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/third third/third.proto
protoc --go_out=plugins=grpc:./user --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/user user/user.proto
protoc --go_out=plugins=grpc:./wrapperspb --go_opt=module=github.com/OpenIMSDK/Open-IM-Server/pkg/proto/wrapperspb wrapperspb/wrapperspb.proto
+4042 -2109
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -1,7 +1,7 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
import "Open-IM-Server/pkg/proto/wrapperspb/wrapperspb.proto";
option go_package = "OpenIM/pkg/proto/group;group";
import "sdkws/sdkws.proto";
import "wrapperspb/wrapperspb.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/group";
package OpenIMServer.group;
+2696 -1452
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -1,7 +1,7 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
import "Open-IM-Server/pkg/proto/wrapperspb/wrapperspb.proto";
option go_package = "OpenIM/pkg/proto/msg;msg";
import "sdkws/sdkws.proto";
import "wrapperspb/wrapperspb.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msg";
package OpenIMServer.msg;
message MsgDataToMQ{
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,6 +1,6 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
option go_package = "OpenIM/pkg/proto/msggateway;msggateway";
import "sdkws/sdkws.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/msggateway";
package OpenIMServer.msggateway;
message OnlinePushMsgReq {
+328 -168
View File
@@ -1,214 +1,389 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.1
// protoc v4.22.0
// source: push/push.proto
package pbPush // import "OpenIM/pkg/proto/push"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import sdkws "OpenIM/pkg/proto/sdkws"
package push
import (
context "golang.org/x/net/context"
context "context"
sdkws "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type PushMsgReq struct {
MsgData *sdkws.MsgData `protobuf:"bytes,1,opt,name=msgData" json:"msgData,omitempty"`
SourceID string `protobuf:"bytes,2,opt,name=sourceID" json:"sourceID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
MsgData *sdkws.MsgData `protobuf:"bytes,1,opt,name=msgData,proto3" json:"msgData"`
SourceID string `protobuf:"bytes,2,opt,name=sourceID,proto3" json:"sourceID"`
}
func (m *PushMsgReq) Reset() { *m = PushMsgReq{} }
func (m *PushMsgReq) String() string { return proto.CompactTextString(m) }
func (*PushMsgReq) ProtoMessage() {}
func (x *PushMsgReq) Reset() {
*x = PushMsgReq{}
if protoimpl.UnsafeEnabled {
mi := &file_push_push_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushMsgReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushMsgReq) ProtoMessage() {}
func (x *PushMsgReq) ProtoReflect() protoreflect.Message {
mi := &file_push_push_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PushMsgReq.ProtoReflect.Descriptor instead.
func (*PushMsgReq) Descriptor() ([]byte, []int) {
return fileDescriptor_push_81fcc0e39a4f87ed, []int{0}
}
func (m *PushMsgReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PushMsgReq.Unmarshal(m, b)
}
func (m *PushMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PushMsgReq.Marshal(b, m, deterministic)
}
func (dst *PushMsgReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushMsgReq.Merge(dst, src)
}
func (m *PushMsgReq) XXX_Size() int {
return xxx_messageInfo_PushMsgReq.Size(m)
}
func (m *PushMsgReq) XXX_DiscardUnknown() {
xxx_messageInfo_PushMsgReq.DiscardUnknown(m)
return file_push_push_proto_rawDescGZIP(), []int{0}
}
var xxx_messageInfo_PushMsgReq proto.InternalMessageInfo
func (m *PushMsgReq) GetMsgData() *sdkws.MsgData {
if m != nil {
return m.MsgData
func (x *PushMsgReq) GetMsgData() *sdkws.MsgData {
if x != nil {
return x.MsgData
}
return nil
}
func (m *PushMsgReq) GetSourceID() string {
if m != nil {
return m.SourceID
func (x *PushMsgReq) GetSourceID() string {
if x != nil {
return x.SourceID
}
return ""
}
type PushMsgResp struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (m *PushMsgResp) Reset() { *m = PushMsgResp{} }
func (m *PushMsgResp) String() string { return proto.CompactTextString(m) }
func (*PushMsgResp) ProtoMessage() {}
func (x *PushMsgResp) Reset() {
*x = PushMsgResp{}
if protoimpl.UnsafeEnabled {
mi := &file_push_push_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushMsgResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushMsgResp) ProtoMessage() {}
func (x *PushMsgResp) ProtoReflect() protoreflect.Message {
mi := &file_push_push_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PushMsgResp.ProtoReflect.Descriptor instead.
func (*PushMsgResp) Descriptor() ([]byte, []int) {
return fileDescriptor_push_81fcc0e39a4f87ed, []int{1}
return file_push_push_proto_rawDescGZIP(), []int{1}
}
func (m *PushMsgResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PushMsgResp.Unmarshal(m, b)
}
func (m *PushMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PushMsgResp.Marshal(b, m, deterministic)
}
func (dst *PushMsgResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_PushMsgResp.Merge(dst, src)
}
func (m *PushMsgResp) XXX_Size() int {
return xxx_messageInfo_PushMsgResp.Size(m)
}
func (m *PushMsgResp) XXX_DiscardUnknown() {
xxx_messageInfo_PushMsgResp.DiscardUnknown(m)
}
var xxx_messageInfo_PushMsgResp proto.InternalMessageInfo
type DelUserPushTokenReq struct {
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
PlatformID int32 `protobuf:"varint,2,opt,name=platformID" json:"platformID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID"`
PlatformID int32 `protobuf:"varint,2,opt,name=platformID,proto3" json:"platformID"`
}
func (m *DelUserPushTokenReq) Reset() { *m = DelUserPushTokenReq{} }
func (m *DelUserPushTokenReq) String() string { return proto.CompactTextString(m) }
func (*DelUserPushTokenReq) ProtoMessage() {}
func (x *DelUserPushTokenReq) Reset() {
*x = DelUserPushTokenReq{}
if protoimpl.UnsafeEnabled {
mi := &file_push_push_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DelUserPushTokenReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DelUserPushTokenReq) ProtoMessage() {}
func (x *DelUserPushTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_push_push_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DelUserPushTokenReq.ProtoReflect.Descriptor instead.
func (*DelUserPushTokenReq) Descriptor() ([]byte, []int) {
return fileDescriptor_push_81fcc0e39a4f87ed, []int{2}
}
func (m *DelUserPushTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelUserPushTokenReq.Unmarshal(m, b)
}
func (m *DelUserPushTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelUserPushTokenReq.Marshal(b, m, deterministic)
}
func (dst *DelUserPushTokenReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelUserPushTokenReq.Merge(dst, src)
}
func (m *DelUserPushTokenReq) XXX_Size() int {
return xxx_messageInfo_DelUserPushTokenReq.Size(m)
}
func (m *DelUserPushTokenReq) XXX_DiscardUnknown() {
xxx_messageInfo_DelUserPushTokenReq.DiscardUnknown(m)
return file_push_push_proto_rawDescGZIP(), []int{2}
}
var xxx_messageInfo_DelUserPushTokenReq proto.InternalMessageInfo
func (m *DelUserPushTokenReq) GetUserID() string {
if m != nil {
return m.UserID
func (x *DelUserPushTokenReq) GetUserID() string {
if x != nil {
return x.UserID
}
return ""
}
func (m *DelUserPushTokenReq) GetPlatformID() int32 {
if m != nil {
return m.PlatformID
func (x *DelUserPushTokenReq) GetPlatformID() int32 {
if x != nil {
return x.PlatformID
}
return 0
}
type DelUserPushTokenResp struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (m *DelUserPushTokenResp) Reset() { *m = DelUserPushTokenResp{} }
func (m *DelUserPushTokenResp) String() string { return proto.CompactTextString(m) }
func (*DelUserPushTokenResp) ProtoMessage() {}
func (x *DelUserPushTokenResp) Reset() {
*x = DelUserPushTokenResp{}
if protoimpl.UnsafeEnabled {
mi := &file_push_push_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DelUserPushTokenResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DelUserPushTokenResp) ProtoMessage() {}
func (x *DelUserPushTokenResp) ProtoReflect() protoreflect.Message {
mi := &file_push_push_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DelUserPushTokenResp.ProtoReflect.Descriptor instead.
func (*DelUserPushTokenResp) Descriptor() ([]byte, []int) {
return fileDescriptor_push_81fcc0e39a4f87ed, []int{3}
}
func (m *DelUserPushTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelUserPushTokenResp.Unmarshal(m, b)
}
func (m *DelUserPushTokenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelUserPushTokenResp.Marshal(b, m, deterministic)
}
func (dst *DelUserPushTokenResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelUserPushTokenResp.Merge(dst, src)
}
func (m *DelUserPushTokenResp) XXX_Size() int {
return xxx_messageInfo_DelUserPushTokenResp.Size(m)
}
func (m *DelUserPushTokenResp) XXX_DiscardUnknown() {
xxx_messageInfo_DelUserPushTokenResp.DiscardUnknown(m)
return file_push_push_proto_rawDescGZIP(), []int{3}
}
var xxx_messageInfo_DelUserPushTokenResp proto.InternalMessageInfo
var File_push_push_proto protoreflect.FileDescriptor
func init() {
proto.RegisterType((*PushMsgReq)(nil), "OpenIMServer.push.PushMsgReq")
proto.RegisterType((*PushMsgResp)(nil), "OpenIMServer.push.PushMsgResp")
proto.RegisterType((*DelUserPushTokenReq)(nil), "OpenIMServer.push.DelUserPushTokenReq")
proto.RegisterType((*DelUserPushTokenResp)(nil), "OpenIMServer.push.DelUserPushTokenResp")
var file_push_push_proto_rawDesc = []byte{
0x0a, 0x0f, 0x70, 0x75, 0x73, 0x68, 0x2f, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e,
0x70, 0x75, 0x73, 0x68, 0x1a, 0x11, 0x73, 0x64, 0x6b, 0x77, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x77,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5f, 0x0a, 0x0a, 0x50, 0x75, 0x73, 0x68, 0x4d,
0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x35, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x73, 0x64, 0x6b, 0x77, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x44,
0x61, 0x74, 0x61, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x44, 0x22, 0x0d, 0x0a, 0x0b, 0x50, 0x75, 0x73, 0x68,
0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x22, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x55, 0x73,
0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x16,
0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
0x72, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x6c, 0x61, 0x74,
0x66, 0x6f, 0x72, 0x6d, 0x49, 0x44, 0x22, 0x16, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x55, 0x73, 0x65,
0x72, 0x50, 0x75, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x32, 0xbf,
0x01, 0x0a, 0x0e, 0x50, 0x75, 0x73, 0x68, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x12, 0x48, 0x0a, 0x07, 0x50, 0x75, 0x73, 0x68, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x2e, 0x4f,
0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x75, 0x73, 0x68,
0x2e, 0x50, 0x75, 0x73, 0x68, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x4f, 0x70,
0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x2e,
0x50, 0x75, 0x73, 0x68, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x63, 0x0a, 0x10, 0x44,
0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12,
0x26, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70,
0x75, 0x73, 0x68, 0x2e, 0x44, 0x65, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x27, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d,
0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x44, 0x65, 0x6c, 0x55,
0x73, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4f,
0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x44, 0x4b, 0x2f, 0x4f, 0x70, 0x65, 0x6e, 0x2d, 0x49, 0x4d,
0x2d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x70, 0x75, 0x73, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_push_push_proto_rawDescOnce sync.Once
file_push_push_proto_rawDescData = file_push_push_proto_rawDesc
)
func file_push_push_proto_rawDescGZIP() []byte {
file_push_push_proto_rawDescOnce.Do(func() {
file_push_push_proto_rawDescData = protoimpl.X.CompressGZIP(file_push_push_proto_rawDescData)
})
return file_push_push_proto_rawDescData
}
var file_push_push_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_push_push_proto_goTypes = []interface{}{
(*PushMsgReq)(nil), // 0: OpenIMServer.push.PushMsgReq
(*PushMsgResp)(nil), // 1: OpenIMServer.push.PushMsgResp
(*DelUserPushTokenReq)(nil), // 2: OpenIMServer.push.DelUserPushTokenReq
(*DelUserPushTokenResp)(nil), // 3: OpenIMServer.push.DelUserPushTokenResp
(*sdkws.MsgData)(nil), // 4: OpenIMServer.sdkws.MsgData
}
var file_push_push_proto_depIdxs = []int32{
4, // 0: OpenIMServer.push.PushMsgReq.msgData:type_name -> OpenIMServer.sdkws.MsgData
0, // 1: OpenIMServer.push.PushMsgService.PushMsg:input_type -> OpenIMServer.push.PushMsgReq
2, // 2: OpenIMServer.push.PushMsgService.DelUserPushToken:input_type -> OpenIMServer.push.DelUserPushTokenReq
1, // 3: OpenIMServer.push.PushMsgService.PushMsg:output_type -> OpenIMServer.push.PushMsgResp
3, // 4: OpenIMServer.push.PushMsgService.DelUserPushToken:output_type -> OpenIMServer.push.DelUserPushTokenResp
3, // [3:5] is the sub-list for method output_type
1, // [1:3] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_push_push_proto_init() }
func file_push_push_proto_init() {
if File_push_push_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_push_push_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PushMsgReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_push_push_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PushMsgResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_push_push_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DelUserPushTokenReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_push_push_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DelUserPushTokenResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_push_push_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_push_push_proto_goTypes,
DependencyIndexes: file_push_push_proto_depIdxs,
MessageInfos: file_push_push_proto_msgTypes,
}.Build()
File_push_push_proto = out.File
file_push_push_proto_rawDesc = nil
file_push_push_proto_goTypes = nil
file_push_push_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for PushMsgService service
const _ = grpc.SupportPackageIsVersion6
// PushMsgServiceClient is the client API for PushMsgService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PushMsgServiceClient interface {
PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error)
DelUserPushToken(ctx context.Context, in *DelUserPushTokenReq, opts ...grpc.CallOption) (*DelUserPushTokenResp, error)
}
type pushMsgServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewPushMsgServiceClient(cc *grpc.ClientConn) PushMsgServiceClient {
func NewPushMsgServiceClient(cc grpc.ClientConnInterface) PushMsgServiceClient {
return &pushMsgServiceClient{cc}
}
func (c *pushMsgServiceClient) PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error) {
out := new(PushMsgResp)
err := grpc.Invoke(ctx, "/OpenIMServer.push.PushMsgService/PushMsg", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/OpenIMServer.push.PushMsgService/PushMsg", in, out, opts...)
if err != nil {
return nil, err
}
@@ -217,20 +392,30 @@ func (c *pushMsgServiceClient) PushMsg(ctx context.Context, in *PushMsgReq, opts
func (c *pushMsgServiceClient) DelUserPushToken(ctx context.Context, in *DelUserPushTokenReq, opts ...grpc.CallOption) (*DelUserPushTokenResp, error) {
out := new(DelUserPushTokenResp)
err := grpc.Invoke(ctx, "/OpenIMServer.push.PushMsgService/DelUserPushToken", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/OpenIMServer.push.PushMsgService/DelUserPushToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for PushMsgService service
// PushMsgServiceServer is the server API for PushMsgService service.
type PushMsgServiceServer interface {
PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error)
DelUserPushToken(context.Context, *DelUserPushTokenReq) (*DelUserPushTokenResp, error)
}
// UnimplementedPushMsgServiceServer can be embedded to have forward compatible implementations.
type UnimplementedPushMsgServiceServer struct {
}
func (*UnimplementedPushMsgServiceServer) PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method PushMsg not implemented")
}
func (*UnimplementedPushMsgServiceServer) DelUserPushToken(context.Context, *DelUserPushTokenReq) (*DelUserPushTokenResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method DelUserPushToken not implemented")
}
func RegisterPushMsgServiceServer(s *grpc.Server, srv PushMsgServiceServer) {
s.RegisterService(&_PushMsgService_serviceDesc, srv)
}
@@ -287,28 +472,3 @@ var _PushMsgService_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{},
Metadata: "push/push.proto",
}
func init() { proto.RegisterFile("push/push.proto", fileDescriptor_push_81fcc0e39a4f87ed) }
var fileDescriptor_push_81fcc0e39a4f87ed = []byte{
// 291 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4f, 0x4b, 0xf3, 0x40,
0x10, 0xc6, 0xc9, 0x0b, 0x6f, 0x6b, 0xa7, 0xf8, 0x6f, 0x95, 0x52, 0xa2, 0x86, 0x92, 0x83, 0xed,
0xa5, 0x1b, 0xa8, 0x78, 0xf2, 0x26, 0x39, 0x98, 0x43, 0x50, 0xa2, 0x5e, 0xbc, 0x48, 0x1a, 0xc7,
0x54, 0xd2, 0x76, 0xc7, 0x9d, 0xc4, 0x7e, 0x3c, 0xbf, 0x9a, 0x6c, 0x12, 0x6b, 0xb5, 0x45, 0xbc,
0x2c, 0xcc, 0x33, 0xbf, 0x79, 0x9e, 0xdd, 0x59, 0xd8, 0xa5, 0x82, 0x27, 0x9e, 0x39, 0x24, 0x69,
0x95, 0x2b, 0xb1, 0x7f, 0x4d, 0x38, 0x0f, 0xc2, 0x5b, 0xd4, 0x6f, 0xa8, 0xa5, 0x69, 0xd8, 0x7d,
0x23, 0x0d, 0x83, 0x70, 0x58, 0x89, 0x1e, 0x65, 0xa9, 0x57, 0xc2, 0x1e, 0x3f, 0x65, 0x0b, 0xf6,
0x16, 0x5c, 0xcd, 0xba, 0x8f, 0x00, 0x37, 0x05, 0x4f, 0x42, 0x4e, 0x23, 0x7c, 0x15, 0xe7, 0xd0,
0x9c, 0x71, 0xea, 0xc7, 0x79, 0xdc, 0xb5, 0x7a, 0xd6, 0xa0, 0x3d, 0x3a, 0x92, 0xdf, 0xbc, 0xcb,
0x61, 0x19, 0x56, 0x48, 0xf4, 0xc9, 0x0a, 0x1b, 0xb6, 0x58, 0x15, 0x3a, 0xc1, 0xc0, 0xef, 0xfe,
0xeb, 0x59, 0x83, 0x56, 0xb4, 0xac, 0xdd, 0x6d, 0x68, 0x2f, 0x03, 0x98, 0xdc, 0x10, 0x0e, 0x7c,
0x9c, 0xde, 0x33, 0x6a, 0xa3, 0xde, 0xa9, 0x0c, 0xe7, 0x26, 0xb8, 0x03, 0x8d, 0x82, 0x51, 0x07,
0x7e, 0x99, 0xdb, 0x8a, 0xea, 0x4a, 0x38, 0x00, 0x34, 0x8d, 0xf3, 0x67, 0xa5, 0x67, 0xb5, 0xf7,
0xff, 0x68, 0x45, 0x71, 0x3b, 0x70, 0xb8, 0x6e, 0xc7, 0x34, 0x7a, 0xb7, 0x60, 0xa7, 0x8e, 0x35,
0x57, 0x7f, 0x49, 0x50, 0x5c, 0x41, 0xb3, 0x56, 0xc4, 0x89, 0x5c, 0xdb, 0x98, 0xfc, 0xda, 0x82,
0xed, 0xfc, 0xd6, 0x66, 0x12, 0x09, 0xec, 0xfd, 0x0c, 0x15, 0xa7, 0x1b, 0x66, 0x36, 0x3c, 0xd4,
0xee, 0xff, 0x89, 0x63, 0xba, 0x74, 0x1e, 0x8e, 0x2b, 0x72, 0xe5, 0xef, 0x0c, 0x7d, 0x41, 0x63,
0x03, 0x8e, 0x1b, 0xa5, 0x74, 0xf6, 0x11, 0x00, 0x00, 0xff, 0xff, 0x38, 0x6e, 0x86, 0xe1, 0x0e,
0x02, 0x00, 0x00,
}
+2 -2
View File
@@ -1,6 +1,6 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
option go_package = "OpenIM/pkg/proto/push;pbPush";
import "sdkws/sdkws.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/push";
package OpenIMServer.push;
message PushMsgReq {
+365 -185
View File
@@ -1,238 +1,437 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.1
// protoc v4.22.0
// source: rtc/rtc.proto
package rtc // import "OpenIM/pkg/proto/rtc"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import sdkws "OpenIM/pkg/proto/sdkws"
package rtc
import (
context "golang.org/x/net/context"
context "context"
sdkws "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SignalMessageAssembleReq struct {
SignalReq *sdkws.SignalReq `protobuf:"bytes,1,opt,name=signalReq" json:"signalReq,omitempty"`
OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SignalReq *sdkws.SignalReq `protobuf:"bytes,1,opt,name=signalReq,proto3" json:"signalReq"`
OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID"`
}
func (m *SignalMessageAssembleReq) Reset() { *m = SignalMessageAssembleReq{} }
func (m *SignalMessageAssembleReq) String() string { return proto.CompactTextString(m) }
func (*SignalMessageAssembleReq) ProtoMessage() {}
func (x *SignalMessageAssembleReq) Reset() {
*x = SignalMessageAssembleReq{}
if protoimpl.UnsafeEnabled {
mi := &file_rtc_rtc_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SignalMessageAssembleReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignalMessageAssembleReq) ProtoMessage() {}
func (x *SignalMessageAssembleReq) ProtoReflect() protoreflect.Message {
mi := &file_rtc_rtc_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SignalMessageAssembleReq.ProtoReflect.Descriptor instead.
func (*SignalMessageAssembleReq) Descriptor() ([]byte, []int) {
return fileDescriptor_rtc_1c78526032681b55, []int{0}
}
func (m *SignalMessageAssembleReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalMessageAssembleReq.Unmarshal(m, b)
}
func (m *SignalMessageAssembleReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalMessageAssembleReq.Marshal(b, m, deterministic)
}
func (dst *SignalMessageAssembleReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalMessageAssembleReq.Merge(dst, src)
}
func (m *SignalMessageAssembleReq) XXX_Size() int {
return xxx_messageInfo_SignalMessageAssembleReq.Size(m)
}
func (m *SignalMessageAssembleReq) XXX_DiscardUnknown() {
xxx_messageInfo_SignalMessageAssembleReq.DiscardUnknown(m)
return file_rtc_rtc_proto_rawDescGZIP(), []int{0}
}
var xxx_messageInfo_SignalMessageAssembleReq proto.InternalMessageInfo
func (m *SignalMessageAssembleReq) GetSignalReq() *sdkws.SignalReq {
if m != nil {
return m.SignalReq
func (x *SignalMessageAssembleReq) GetSignalReq() *sdkws.SignalReq {
if x != nil {
return x.SignalReq
}
return nil
}
func (m *SignalMessageAssembleReq) GetOperationID() string {
if m != nil {
return m.OperationID
func (x *SignalMessageAssembleReq) GetOperationID() string {
if x != nil {
return x.OperationID
}
return ""
}
type SignalMessageAssembleResp struct {
IsPass bool `protobuf:"varint,1,opt,name=isPass" json:"isPass,omitempty"`
SignalResp *sdkws.SignalResp `protobuf:"bytes,2,opt,name=signalResp" json:"signalResp,omitempty"`
MsgData *sdkws.MsgData `protobuf:"bytes,3,opt,name=msgData" json:"msgData,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
IsPass bool `protobuf:"varint,1,opt,name=isPass,proto3" json:"isPass"`
SignalResp *sdkws.SignalResp `protobuf:"bytes,2,opt,name=signalResp,proto3" json:"signalResp"`
MsgData *sdkws.MsgData `protobuf:"bytes,3,opt,name=msgData,proto3" json:"msgData"`
}
func (m *SignalMessageAssembleResp) Reset() { *m = SignalMessageAssembleResp{} }
func (m *SignalMessageAssembleResp) String() string { return proto.CompactTextString(m) }
func (*SignalMessageAssembleResp) ProtoMessage() {}
func (x *SignalMessageAssembleResp) Reset() {
*x = SignalMessageAssembleResp{}
if protoimpl.UnsafeEnabled {
mi := &file_rtc_rtc_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SignalMessageAssembleResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignalMessageAssembleResp) ProtoMessage() {}
func (x *SignalMessageAssembleResp) ProtoReflect() protoreflect.Message {
mi := &file_rtc_rtc_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SignalMessageAssembleResp.ProtoReflect.Descriptor instead.
func (*SignalMessageAssembleResp) Descriptor() ([]byte, []int) {
return fileDescriptor_rtc_1c78526032681b55, []int{1}
}
func (m *SignalMessageAssembleResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalMessageAssembleResp.Unmarshal(m, b)
}
func (m *SignalMessageAssembleResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalMessageAssembleResp.Marshal(b, m, deterministic)
}
func (dst *SignalMessageAssembleResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalMessageAssembleResp.Merge(dst, src)
}
func (m *SignalMessageAssembleResp) XXX_Size() int {
return xxx_messageInfo_SignalMessageAssembleResp.Size(m)
}
func (m *SignalMessageAssembleResp) XXX_DiscardUnknown() {
xxx_messageInfo_SignalMessageAssembleResp.DiscardUnknown(m)
return file_rtc_rtc_proto_rawDescGZIP(), []int{1}
}
var xxx_messageInfo_SignalMessageAssembleResp proto.InternalMessageInfo
func (m *SignalMessageAssembleResp) GetIsPass() bool {
if m != nil {
return m.IsPass
func (x *SignalMessageAssembleResp) GetIsPass() bool {
if x != nil {
return x.IsPass
}
return false
}
func (m *SignalMessageAssembleResp) GetSignalResp() *sdkws.SignalResp {
if m != nil {
return m.SignalResp
func (x *SignalMessageAssembleResp) GetSignalResp() *sdkws.SignalResp {
if x != nil {
return x.SignalResp
}
return nil
}
func (m *SignalMessageAssembleResp) GetMsgData() *sdkws.MsgData {
if m != nil {
return m.MsgData
func (x *SignalMessageAssembleResp) GetMsgData() *sdkws.MsgData {
if x != nil {
return x.MsgData
}
return nil
}
type SignalGetRoomsReq struct {
RoomID string `protobuf:"bytes,1,opt,name=roomID" json:"roomID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RoomID string `protobuf:"bytes,1,opt,name=roomID,proto3" json:"roomID"`
}
func (m *SignalGetRoomsReq) Reset() { *m = SignalGetRoomsReq{} }
func (m *SignalGetRoomsReq) String() string { return proto.CompactTextString(m) }
func (*SignalGetRoomsReq) ProtoMessage() {}
func (x *SignalGetRoomsReq) Reset() {
*x = SignalGetRoomsReq{}
if protoimpl.UnsafeEnabled {
mi := &file_rtc_rtc_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SignalGetRoomsReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignalGetRoomsReq) ProtoMessage() {}
func (x *SignalGetRoomsReq) ProtoReflect() protoreflect.Message {
mi := &file_rtc_rtc_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SignalGetRoomsReq.ProtoReflect.Descriptor instead.
func (*SignalGetRoomsReq) Descriptor() ([]byte, []int) {
return fileDescriptor_rtc_1c78526032681b55, []int{2}
}
func (m *SignalGetRoomsReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalGetRoomsReq.Unmarshal(m, b)
}
func (m *SignalGetRoomsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalGetRoomsReq.Marshal(b, m, deterministic)
}
func (dst *SignalGetRoomsReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalGetRoomsReq.Merge(dst, src)
}
func (m *SignalGetRoomsReq) XXX_Size() int {
return xxx_messageInfo_SignalGetRoomsReq.Size(m)
}
func (m *SignalGetRoomsReq) XXX_DiscardUnknown() {
xxx_messageInfo_SignalGetRoomsReq.DiscardUnknown(m)
return file_rtc_rtc_proto_rawDescGZIP(), []int{2}
}
var xxx_messageInfo_SignalGetRoomsReq proto.InternalMessageInfo
func (m *SignalGetRoomsReq) GetRoomID() string {
if m != nil {
return m.RoomID
func (x *SignalGetRoomsReq) GetRoomID() string {
if x != nil {
return x.RoomID
}
return ""
}
type SignalGetRoomsResp struct {
Rooms []*sdkws.SignalGetRoomByGroupIDReply `protobuf:"bytes,1,rep,name=rooms" json:"rooms,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rooms []*sdkws.SignalGetRoomByGroupIDReply `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms"`
}
func (m *SignalGetRoomsResp) Reset() { *m = SignalGetRoomsResp{} }
func (m *SignalGetRoomsResp) String() string { return proto.CompactTextString(m) }
func (*SignalGetRoomsResp) ProtoMessage() {}
func (x *SignalGetRoomsResp) Reset() {
*x = SignalGetRoomsResp{}
if protoimpl.UnsafeEnabled {
mi := &file_rtc_rtc_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SignalGetRoomsResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SignalGetRoomsResp) ProtoMessage() {}
func (x *SignalGetRoomsResp) ProtoReflect() protoreflect.Message {
mi := &file_rtc_rtc_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SignalGetRoomsResp.ProtoReflect.Descriptor instead.
func (*SignalGetRoomsResp) Descriptor() ([]byte, []int) {
return fileDescriptor_rtc_1c78526032681b55, []int{3}
}
func (m *SignalGetRoomsResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignalGetRoomsResp.Unmarshal(m, b)
}
func (m *SignalGetRoomsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignalGetRoomsResp.Marshal(b, m, deterministic)
}
func (dst *SignalGetRoomsResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignalGetRoomsResp.Merge(dst, src)
}
func (m *SignalGetRoomsResp) XXX_Size() int {
return xxx_messageInfo_SignalGetRoomsResp.Size(m)
}
func (m *SignalGetRoomsResp) XXX_DiscardUnknown() {
xxx_messageInfo_SignalGetRoomsResp.DiscardUnknown(m)
return file_rtc_rtc_proto_rawDescGZIP(), []int{3}
}
var xxx_messageInfo_SignalGetRoomsResp proto.InternalMessageInfo
func (m *SignalGetRoomsResp) GetRooms() []*sdkws.SignalGetRoomByGroupIDReply {
if m != nil {
return m.Rooms
func (x *SignalGetRoomsResp) GetRooms() []*sdkws.SignalGetRoomByGroupIDReply {
if x != nil {
return x.Rooms
}
return nil
}
func init() {
proto.RegisterType((*SignalMessageAssembleReq)(nil), "OpenIMServer.rtc.SignalMessageAssembleReq")
proto.RegisterType((*SignalMessageAssembleResp)(nil), "OpenIMServer.rtc.SignalMessageAssembleResp")
proto.RegisterType((*SignalGetRoomsReq)(nil), "OpenIMServer.rtc.SignalGetRoomsReq")
proto.RegisterType((*SignalGetRoomsResp)(nil), "OpenIMServer.rtc.SignalGetRoomsResp")
var File_rtc_rtc_proto protoreflect.FileDescriptor
var file_rtc_rtc_proto_rawDesc = []byte{
0x0a, 0x0d, 0x72, 0x74, 0x63, 0x2f, 0x72, 0x74, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x10, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x72, 0x74,
0x63, 0x1a, 0x11, 0x73, 0x64, 0x6b, 0x77, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x77, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x79, 0x0a, 0x18, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71,
0x12, 0x3b, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76,
0x65, 0x72, 0x2e, 0x73, 0x64, 0x6b, 0x77, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52,
0x65, 0x71, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x20, 0x0a,
0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22,
0xaa, 0x01, 0x0a, 0x19, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x41, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a,
0x06, 0x69, 0x73, 0x50, 0x61, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69,
0x73, 0x50, 0x61, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52,
0x65, 0x73, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x4f, 0x70, 0x65, 0x6e,
0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x73, 0x64, 0x6b, 0x77, 0x73, 0x2e, 0x53,
0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x61,
0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x35, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53,
0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x73, 0x64, 0x6b, 0x77, 0x73, 0x2e, 0x4d, 0x73, 0x67, 0x44,
0x61, 0x74, 0x61, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x44, 0x61, 0x74, 0x61, 0x22, 0x2b, 0x0a, 0x11,
0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x73, 0x52, 0x65,
0x71, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x44, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x69, 0x67,
0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12,
0x45, 0x0a, 0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f,
0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x73, 0x64,
0x6b, 0x77, 0x73, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f,
0x6d, 0x42, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x44, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52,
0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x32, 0xdb, 0x01, 0x0a, 0x0a, 0x52, 0x74, 0x63, 0x53, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x15, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x65, 0x12, 0x2a,
0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x72, 0x74,
0x63, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41,
0x73, 0x73, 0x65, 0x6d, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x4f, 0x70, 0x65,
0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x72, 0x74, 0x63, 0x2e, 0x53, 0x69,
0x67, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x41, 0x73, 0x73, 0x65, 0x6d,
0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x5b, 0x0a, 0x0e, 0x53, 0x69, 0x67, 0x6e, 0x61,
0x6c, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x73, 0x12, 0x23, 0x2e, 0x4f, 0x70, 0x65, 0x6e,
0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x72, 0x74, 0x63, 0x2e, 0x53, 0x69, 0x67,
0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x24,
0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x72, 0x74,
0x63, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, 0x52, 0x6f, 0x6f, 0x6d, 0x73,
0x52, 0x65, 0x73, 0x70, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x6f, 0x6d, 0x2f, 0x4f, 0x70, 0x65, 0x6e, 0x49, 0x4d, 0x53, 0x44, 0x4b, 0x2f, 0x4f, 0x70, 0x65,
0x6e, 0x2d, 0x49, 0x4d, 0x2d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x74, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_rtc_rtc_proto_rawDescOnce sync.Once
file_rtc_rtc_proto_rawDescData = file_rtc_rtc_proto_rawDesc
)
func file_rtc_rtc_proto_rawDescGZIP() []byte {
file_rtc_rtc_proto_rawDescOnce.Do(func() {
file_rtc_rtc_proto_rawDescData = protoimpl.X.CompressGZIP(file_rtc_rtc_proto_rawDescData)
})
return file_rtc_rtc_proto_rawDescData
}
var file_rtc_rtc_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_rtc_rtc_proto_goTypes = []interface{}{
(*SignalMessageAssembleReq)(nil), // 0: OpenIMServer.rtc.SignalMessageAssembleReq
(*SignalMessageAssembleResp)(nil), // 1: OpenIMServer.rtc.SignalMessageAssembleResp
(*SignalGetRoomsReq)(nil), // 2: OpenIMServer.rtc.SignalGetRoomsReq
(*SignalGetRoomsResp)(nil), // 3: OpenIMServer.rtc.SignalGetRoomsResp
(*sdkws.SignalReq)(nil), // 4: OpenIMServer.sdkws.SignalReq
(*sdkws.SignalResp)(nil), // 5: OpenIMServer.sdkws.SignalResp
(*sdkws.MsgData)(nil), // 6: OpenIMServer.sdkws.MsgData
(*sdkws.SignalGetRoomByGroupIDReply)(nil), // 7: OpenIMServer.sdkws.SignalGetRoomByGroupIDReply
}
var file_rtc_rtc_proto_depIdxs = []int32{
4, // 0: OpenIMServer.rtc.SignalMessageAssembleReq.signalReq:type_name -> OpenIMServer.sdkws.SignalReq
5, // 1: OpenIMServer.rtc.SignalMessageAssembleResp.signalResp:type_name -> OpenIMServer.sdkws.SignalResp
6, // 2: OpenIMServer.rtc.SignalMessageAssembleResp.msgData:type_name -> OpenIMServer.sdkws.MsgData
7, // 3: OpenIMServer.rtc.SignalGetRoomsResp.rooms:type_name -> OpenIMServer.sdkws.SignalGetRoomByGroupIDReply
0, // 4: OpenIMServer.rtc.RtcService.SignalMessageAssemble:input_type -> OpenIMServer.rtc.SignalMessageAssembleReq
2, // 5: OpenIMServer.rtc.RtcService.SignalGetRooms:input_type -> OpenIMServer.rtc.SignalGetRoomsReq
1, // 6: OpenIMServer.rtc.RtcService.SignalMessageAssemble:output_type -> OpenIMServer.rtc.SignalMessageAssembleResp
3, // 7: OpenIMServer.rtc.RtcService.SignalGetRooms:output_type -> OpenIMServer.rtc.SignalGetRoomsResp
6, // [6:8] is the sub-list for method output_type
4, // [4:6] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_rtc_rtc_proto_init() }
func file_rtc_rtc_proto_init() {
if File_rtc_rtc_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_rtc_rtc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SignalMessageAssembleReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rtc_rtc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SignalMessageAssembleResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rtc_rtc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SignalGetRoomsReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_rtc_rtc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SignalGetRoomsResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_rtc_rtc_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_rtc_rtc_proto_goTypes,
DependencyIndexes: file_rtc_rtc_proto_depIdxs,
MessageInfos: file_rtc_rtc_proto_msgTypes,
}.Build()
File_rtc_rtc_proto = out.File
file_rtc_rtc_proto_rawDesc = nil
file_rtc_rtc_proto_goTypes = nil
file_rtc_rtc_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for RtcService service
const _ = grpc.SupportPackageIsVersion6
// RtcServiceClient is the client API for RtcService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RtcServiceClient interface {
SignalMessageAssemble(ctx context.Context, in *SignalMessageAssembleReq, opts ...grpc.CallOption) (*SignalMessageAssembleResp, error)
SignalGetRooms(ctx context.Context, in *SignalGetRoomsReq, opts ...grpc.CallOption) (*SignalGetRoomsResp, error)
}
type rtcServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewRtcServiceClient(cc *grpc.ClientConn) RtcServiceClient {
func NewRtcServiceClient(cc grpc.ClientConnInterface) RtcServiceClient {
return &rtcServiceClient{cc}
}
func (c *rtcServiceClient) SignalMessageAssemble(ctx context.Context, in *SignalMessageAssembleReq, opts ...grpc.CallOption) (*SignalMessageAssembleResp, error) {
out := new(SignalMessageAssembleResp)
err := grpc.Invoke(ctx, "/OpenIMServer.rtc.RtcService/SignalMessageAssemble", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/OpenIMServer.rtc.RtcService/SignalMessageAssemble", in, out, opts...)
if err != nil {
return nil, err
}
@@ -241,20 +440,30 @@ func (c *rtcServiceClient) SignalMessageAssemble(ctx context.Context, in *Signal
func (c *rtcServiceClient) SignalGetRooms(ctx context.Context, in *SignalGetRoomsReq, opts ...grpc.CallOption) (*SignalGetRoomsResp, error) {
out := new(SignalGetRoomsResp)
err := grpc.Invoke(ctx, "/OpenIMServer.rtc.RtcService/SignalGetRooms", in, out, c.cc, opts...)
err := c.cc.Invoke(ctx, "/OpenIMServer.rtc.RtcService/SignalGetRooms", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for RtcService service
// RtcServiceServer is the server API for RtcService service.
type RtcServiceServer interface {
SignalMessageAssemble(context.Context, *SignalMessageAssembleReq) (*SignalMessageAssembleResp, error)
SignalGetRooms(context.Context, *SignalGetRoomsReq) (*SignalGetRoomsResp, error)
}
// UnimplementedRtcServiceServer can be embedded to have forward compatible implementations.
type UnimplementedRtcServiceServer struct {
}
func (*UnimplementedRtcServiceServer) SignalMessageAssemble(context.Context, *SignalMessageAssembleReq) (*SignalMessageAssembleResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method SignalMessageAssemble not implemented")
}
func (*UnimplementedRtcServiceServer) SignalGetRooms(context.Context, *SignalGetRoomsReq) (*SignalGetRoomsResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method SignalGetRooms not implemented")
}
func RegisterRtcServiceServer(s *grpc.Server, srv RtcServiceServer) {
s.RegisterService(&_RtcService_serviceDesc, srv)
}
@@ -311,32 +520,3 @@ var _RtcService_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{},
Metadata: "rtc/rtc.proto",
}
func init() { proto.RegisterFile("rtc/rtc.proto", fileDescriptor_rtc_1c78526032681b55) }
var fileDescriptor_rtc_1c78526032681b55 = []byte{
// 368 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xdd, 0x4a, 0xe3, 0x40,
0x14, 0x80, 0xc9, 0x96, 0xed, 0x6e, 0x4f, 0xd8, 0x65, 0x77, 0x60, 0x4b, 0x36, 0xa2, 0x94, 0x28,
0x58, 0x2c, 0x4d, 0x20, 0xe2, 0x55, 0x41, 0xb0, 0x44, 0x4a, 0x2e, 0x82, 0x32, 0xbd, 0xb3, 0x57,
0x69, 0x1c, 0x42, 0x68, 0xd3, 0x99, 0xce, 0x19, 0x2d, 0x7d, 0x25, 0x5f, 0xc9, 0x97, 0x91, 0x4c,
0x5a, 0x4c, 0x4b, 0xa3, 0x5e, 0x9e, 0x33, 0xdf, 0x77, 0x7e, 0x66, 0x06, 0x7e, 0x49, 0x95, 0x78,
0x52, 0x25, 0xae, 0x90, 0x5c, 0x71, 0xf2, 0xe7, 0x4e, 0xb0, 0x45, 0x18, 0x8d, 0x99, 0x7c, 0x66,
0xd2, 0x95, 0x2a, 0xb1, 0xcf, 0x8b, 0x4c, 0x3f, 0x8c, 0xfa, 0x65, 0xce, 0x13, 0xb3, 0xd4, 0xd3,
0xac, 0x87, 0x8f, 0xb3, 0x15, 0x7a, 0x2b, 0x2c, 0x55, 0x67, 0x0d, 0xd6, 0x38, 0x4b, 0x17, 0xf1,
0x3c, 0x62, 0x88, 0x71, 0xca, 0x6e, 0x10, 0x59, 0x3e, 0x9d, 0x33, 0xca, 0x96, 0x64, 0x00, 0x2d,
0xd4, 0x67, 0x94, 0x2d, 0x2d, 0xa3, 0x63, 0x74, 0x4d, 0xff, 0xd8, 0xdd, 0x69, 0xa5, 0x8b, 0xb9,
0xe3, 0x2d, 0x44, 0xdf, 0x79, 0xd2, 0x01, 0x93, 0x0b, 0x26, 0x63, 0x95, 0xf1, 0x45, 0x18, 0x58,
0xdf, 0x3a, 0x46, 0xb7, 0x45, 0xab, 0x29, 0xe7, 0xc5, 0x80, 0xff, 0x35, 0xbd, 0x51, 0x90, 0x36,
0x34, 0x33, 0xbc, 0x8f, 0x11, 0x75, 0xe7, 0x9f, 0x74, 0x13, 0x91, 0x6b, 0x80, 0x6d, 0x13, 0x14,
0xba, 0xac, 0xe9, 0x9f, 0x7c, 0x34, 0x15, 0x0a, 0x5a, 0x31, 0xc8, 0x15, 0xfc, 0xc8, 0x31, 0x0d,
0x62, 0x15, 0x5b, 0x0d, 0x2d, 0x1f, 0x1d, 0x92, 0xa3, 0x12, 0xa1, 0x5b, 0xd6, 0xe9, 0xc1, 0xdf,
0xb2, 0xe0, 0x88, 0x29, 0xca, 0x79, 0x8e, 0xc5, 0x8e, 0x6d, 0x68, 0x4a, 0xce, 0xf3, 0x30, 0xd0,
0x33, 0xb6, 0xe8, 0x26, 0x72, 0x26, 0x40, 0xf6, 0x61, 0x14, 0xe4, 0x16, 0xbe, 0x17, 0xe7, 0xc5,
0x42, 0x8d, 0xae, 0xe9, 0x7b, 0xf5, 0x43, 0x6f, 0xb4, 0xe1, 0x7a, 0x24, 0xf9, 0x93, 0x08, 0x03,
0xca, 0xc4, 0x7c, 0x4d, 0x4b, 0xdb, 0x7f, 0x35, 0x00, 0xa8, 0x4a, 0x0a, 0x2d, 0x4b, 0x18, 0x11,
0xf0, 0xef, 0xe0, 0x25, 0x92, 0x0b, 0x77, 0xff, 0x57, 0xb8, 0x75, 0x2f, 0x6d, 0xf7, 0xbe, 0xcc,
0xa2, 0x20, 0x13, 0xf8, 0xbd, 0xbb, 0x1d, 0x39, 0xad, 0xd3, 0x2b, 0x97, 0x65, 0x9f, 0x7d, 0x0e,
0xa1, 0x18, 0xda, 0x0f, 0x56, 0x89, 0x55, 0xbe, 0xac, 0x54, 0xc9, 0x40, 0xaa, 0x64, 0xda, 0xd4,
0xe1, 0xe5, 0x5b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6d, 0x79, 0xb8, 0x52, 0xfe, 0x02, 0x00, 0x00,
}
+2 -2
View File
@@ -1,6 +1,6 @@
syntax = "proto3";
import "Open-IM-Server/pkg/proto/sdkws/ws.proto";
option go_package = "OpenIM/pkg/proto/rtc;rtc";
import "sdkws/sdkws.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/rtc";
package OpenIMServer.rtc;
message SignalMessageAssembleReq {
File diff suppressed because it is too large Load Diff
@@ -1,7 +1,7 @@
syntax = "proto3";
package OpenIMServer.sdkws;
option go_package = "OpenIM/pkg/proto/sdkws;sdkws";
import "Open-IM-Server/pkg/proto/wrapperspb/wrapperspb.proto";
import "wrapperspb/wrapperspb.proto";
option go_package = "github.com/OpenIMSDK/Open-IM-Server/pkg/proto/sdkws";
////////////////////////////////base///////////////////////////////
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More