Skip to content

Commit

Permalink
fix: change repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
yushan committed Jun 1, 2022
1 parent 416e2ad commit 8d30837
Show file tree
Hide file tree
Showing 74 changed files with 209 additions and 207 deletions.
2 changes: 1 addition & 1 deletion api/message/v1/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/message/v1/message_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/user/friend/v1/friend.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/user/friend/v1/friend_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/user/v1/user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions apps/gateway/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ import (
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/gateway/internal/app"
"github.com/go-goim/goim/apps/gateway/internal/router"
"github.com/go-goim/goim/apps/gateway/internal/service"
"github.com/go-goim/goim/pkg/cmd"
"github.com/go-goim/goim/pkg/graceful"
"github.com/go-goim/goim/pkg/log"
"github.com/go-goim/goim/pkg/mid"
messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/gateway/internal/app"
"github.com/go-goim/core/apps/gateway/internal/router"
"github.com/go-goim/core/apps/gateway/internal/service"
"github.com/go-goim/core/pkg/cmd"
"github.com/go-goim/core/pkg/graceful"
"github.com/go-goim/core/pkg/log"
"github.com/go-goim/core/pkg/mid"

_ "github.com/swaggo/swag"

_ "github.com/go-goim/goim/swagger"
_ "github.com/go-goim/core/swagger"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions apps/gateway/internal/app/app.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package app

import (
"github.com/go-goim/goim/pkg/app"
"github.com/go-goim/goim/pkg/registry"
"github.com/go-goim/core/pkg/app"
"github.com/go-goim/core/pkg/registry"
)

type Application struct {
Expand Down
4 changes: 2 additions & 2 deletions apps/gateway/internal/dao/user_dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

redisv8 "github.com/go-redis/redis/v8"

"github.com/go-goim/goim/apps/gateway/internal/app"
"github.com/go-goim/goim/pkg/consts"
"github.com/go-goim/core/apps/gateway/internal/app"
"github.com/go-goim/core/pkg/consts"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions apps/gateway/internal/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package router
import (
"github.com/gin-gonic/gin"

v1 "github.com/go-goim/goim/apps/gateway/internal/router/v1"
"github.com/go-goim/goim/pkg/router"
v1 "github.com/go-goim/core/apps/gateway/internal/router/v1"
"github.com/go-goim/core/pkg/router"
)

type rootRouter struct {
Expand Down
8 changes: 4 additions & 4 deletions apps/gateway/internal/router/v1/discover_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (

"github.com/gin-gonic/gin"

"github.com/go-goim/goim/apps/gateway/internal/service"
"github.com/go-goim/goim/pkg/mid"
"github.com/go-goim/goim/pkg/response"
"github.com/go-goim/goim/pkg/router"
"github.com/go-goim/core/apps/gateway/internal/service"
"github.com/go-goim/core/pkg/mid"
"github.com/go-goim/core/pkg/response"
"github.com/go-goim/core/pkg/router"
)

type DiscoverRouter struct {
Expand Down
14 changes: 7 additions & 7 deletions apps/gateway/internal/router/v1/friend_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package v1
import (
"github.com/gin-gonic/gin"

responsepb "github.com/go-goim/goim/api/transport/response"
friendpb "github.com/go-goim/goim/api/user/friend/v1"
"github.com/go-goim/goim/apps/gateway/internal/service"
"github.com/go-goim/goim/pkg/mid"
"github.com/go-goim/goim/pkg/request"
"github.com/go-goim/goim/pkg/response"
"github.com/go-goim/goim/pkg/router"
responsepb "github.com/go-goim/core/api/transport/response"
friendpb "github.com/go-goim/core/api/user/friend/v1"
"github.com/go-goim/core/apps/gateway/internal/service"
"github.com/go-goim/core/pkg/mid"
"github.com/go-goim/core/pkg/request"
"github.com/go-goim/core/pkg/response"
"github.com/go-goim/core/pkg/router"
)

type FriendRouter struct {
Expand Down
12 changes: 6 additions & 6 deletions apps/gateway/internal/router/v1/offline_message_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package v1
import (
"github.com/gin-gonic/gin"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/gateway/internal/service"
"github.com/go-goim/goim/pkg/mid"
"github.com/go-goim/goim/pkg/request"
"github.com/go-goim/goim/pkg/response"
"github.com/go-goim/goim/pkg/router"
messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/gateway/internal/service"
"github.com/go-goim/core/pkg/mid"
"github.com/go-goim/core/pkg/request"
"github.com/go-goim/core/pkg/response"
"github.com/go-goim/core/pkg/router"
)

type OfflineMessageRouter struct {
Expand Down
14 changes: 7 additions & 7 deletions apps/gateway/internal/router/v1/send_msg_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package v1
import (
"github.com/gin-gonic/gin"

messagev1 "github.com/go-goim/goim/api/message/v1"
responsepb "github.com/go-goim/goim/api/transport/response"
"github.com/go-goim/goim/apps/gateway/internal/service"
"github.com/go-goim/goim/pkg/mid"
"github.com/go-goim/goim/pkg/request"
"github.com/go-goim/goim/pkg/response"
"github.com/go-goim/goim/pkg/router"
messagev1 "github.com/go-goim/core/api/message/v1"
responsepb "github.com/go-goim/core/api/transport/response"
"github.com/go-goim/core/apps/gateway/internal/service"
"github.com/go-goim/core/pkg/mid"
"github.com/go-goim/core/pkg/request"
"github.com/go-goim/core/pkg/response"
"github.com/go-goim/core/pkg/router"
)

type MsgRouter struct {
Expand Down
12 changes: 6 additions & 6 deletions apps/gateway/internal/router/v1/user_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package v1
import (
"github.com/gin-gonic/gin"

userv1 "github.com/go-goim/goim/api/user/v1"
"github.com/go-goim/goim/apps/gateway/internal/service"
"github.com/go-goim/goim/pkg/mid"
"github.com/go-goim/goim/pkg/request"
"github.com/go-goim/goim/pkg/response"
"github.com/go-goim/goim/pkg/router"
userv1 "github.com/go-goim/core/api/user/v1"
"github.com/go-goim/core/apps/gateway/internal/service"
"github.com/go-goim/core/pkg/mid"
"github.com/go-goim/core/pkg/request"
"github.com/go-goim/core/pkg/response"
"github.com/go-goim/core/pkg/router"
)

type UserRouter struct {
Expand Down
2 changes: 1 addition & 1 deletion apps/gateway/internal/router/v1/v1.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v1

import (
"github.com/go-goim/goim/pkg/router"
"github.com/go-goim/core/pkg/router"
)

type Router struct {
Expand Down
4 changes: 2 additions & 2 deletions apps/gateway/internal/service/discover_push_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"math/rand"
"strings"

"github.com/go-goim/goim/apps/gateway/internal/app"
"github.com/go-goim/goim/pkg/registry"
"github.com/go-goim/core/apps/gateway/internal/app"
"github.com/go-goim/core/pkg/registry"
)

func LoadMatchedPushServer(ctx context.Context) (string, error) {
Expand Down
6 changes: 3 additions & 3 deletions apps/gateway/internal/service/friend_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
ggrpc "google.golang.org/grpc"
"google.golang.org/grpc/connectivity"

responsepb "github.com/go-goim/goim/api/transport/response"
friendpb "github.com/go-goim/goim/api/user/friend/v1"
"github.com/go-goim/goim/apps/gateway/internal/app"
responsepb "github.com/go-goim/core/api/transport/response"
friendpb "github.com/go-goim/core/api/user/friend/v1"
"github.com/go-goim/core/apps/gateway/internal/app"
)

type FriendService struct {
Expand Down
4 changes: 2 additions & 2 deletions apps/gateway/internal/service/offline_message_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
ggrpc "google.golang.org/grpc"
"google.golang.org/grpc/connectivity"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/gateway/internal/app"
messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/gateway/internal/app"
)

type OfflineMessageService struct {
Expand Down
12 changes: 6 additions & 6 deletions apps/gateway/internal/service/send_message_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
ggrpc "google.golang.org/grpc"
"google.golang.org/grpc/connectivity"

responsepb "github.com/go-goim/goim/api/transport/response"
friendpb "github.com/go-goim/goim/api/user/friend/v1"
"github.com/go-goim/goim/pkg/log"
responsepb "github.com/go-goim/core/api/transport/response"
friendpb "github.com/go-goim/core/api/user/friend/v1"
"github.com/go-goim/core/pkg/log"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/gateway/internal/app"
"github.com/go-goim/goim/pkg/mq"
messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/gateway/internal/app"
"github.com/go-goim/core/pkg/mq"
)

type SendMessageService struct {
Expand Down
12 changes: 6 additions & 6 deletions apps/gateway/internal/service/user_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
ggrpc "google.golang.org/grpc"
"google.golang.org/grpc/connectivity"

responsepb "github.com/go-goim/goim/api/transport/response"
userv1 "github.com/go-goim/goim/api/user/v1"
"github.com/go-goim/goim/apps/gateway/internal/app"
"github.com/go-goim/goim/apps/gateway/internal/dao"
"github.com/go-goim/goim/pkg/log"
"github.com/go-goim/goim/pkg/util"
responsepb "github.com/go-goim/core/api/transport/response"
userv1 "github.com/go-goim/core/api/user/v1"
"github.com/go-goim/core/apps/gateway/internal/app"
"github.com/go-goim/core/apps/gateway/internal/dao"
"github.com/go-goim/core/pkg/log"
"github.com/go-goim/core/pkg/util"
)

type UserService struct {
Expand Down
16 changes: 8 additions & 8 deletions apps/msg/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package main
import (
"context"

"github.com/go-goim/goim/pkg/cmd"
"github.com/go-goim/goim/pkg/log"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/msg/internal/app"
"github.com/go-goim/goim/apps/msg/internal/service"
"github.com/go-goim/goim/pkg/graceful"
"github.com/go-goim/goim/pkg/mq"
"github.com/go-goim/core/pkg/cmd"
"github.com/go-goim/core/pkg/log"

messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/msg/internal/app"
"github.com/go-goim/core/apps/msg/internal/service"
"github.com/go-goim/core/pkg/graceful"
"github.com/go-goim/core/pkg/mq"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion apps/msg/internal/app/app.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package app

import (
"github.com/go-goim/goim/pkg/app"
"github.com/go-goim/core/pkg/app"
)

type Application struct {
Expand Down
12 changes: 6 additions & 6 deletions apps/msg/internal/service/msg_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (
redisv8 "github.com/go-redis/redis/v8"
ggrpc "google.golang.org/grpc"

"github.com/go-goim/goim/pkg/consts"
"github.com/go-goim/goim/pkg/log"
"github.com/go-goim/core/pkg/consts"
"github.com/go-goim/core/pkg/log"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/msg/internal/app"
"github.com/go-goim/goim/pkg/conn/pool"
"github.com/go-goim/goim/pkg/conn/wrapper"
messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/msg/internal/app"
"github.com/go-goim/core/pkg/conn/pool"
"github.com/go-goim/core/pkg/conn/wrapper"
)

type MqMessageService struct {
Expand Down
10 changes: 5 additions & 5 deletions apps/msg/internal/service/offline_message_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"github.com/apache/rocketmq-client-go/v2/primitive"
redisv8 "github.com/go-redis/redis/v8"

responsepb "github.com/go-goim/goim/api/transport/response"
"github.com/go-goim/goim/pkg/consts"
"github.com/go-goim/goim/pkg/log"
responsepb "github.com/go-goim/core/api/transport/response"
"github.com/go-goim/core/pkg/consts"
"github.com/go-goim/core/pkg/log"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/msg/internal/app"
messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/msg/internal/app"
)

type OfflineMessageService struct {
Expand Down
16 changes: 8 additions & 8 deletions apps/push/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import (

"github.com/gin-gonic/gin"

messagev1 "github.com/go-goim/goim/api/message/v1"
"github.com/go-goim/goim/apps/push/internal/app"
"github.com/go-goim/goim/apps/push/internal/router"
"github.com/go-goim/goim/apps/push/internal/service"
"github.com/go-goim/goim/pkg/cmd"
"github.com/go-goim/goim/pkg/graceful"
"github.com/go-goim/goim/pkg/log"
"github.com/go-goim/goim/pkg/mid"
messagev1 "github.com/go-goim/core/api/message/v1"
"github.com/go-goim/core/apps/push/internal/app"
"github.com/go-goim/core/apps/push/internal/router"
"github.com/go-goim/core/apps/push/internal/service"
"github.com/go-goim/core/pkg/cmd"
"github.com/go-goim/core/pkg/graceful"
"github.com/go-goim/core/pkg/log"
"github.com/go-goim/core/pkg/mid"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion apps/push/internal/app/app.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package app

import (
"github.com/go-goim/goim/pkg/app"
"github.com/go-goim/core/pkg/app"
)

type Application struct {
Expand Down
4 changes: 2 additions & 2 deletions apps/push/internal/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package router
import (
"github.com/gin-gonic/gin"

v1 "github.com/go-goim/goim/apps/push/internal/router/v1"
"github.com/go-goim/goim/pkg/router"
v1 "github.com/go-goim/core/apps/push/internal/router/v1"
"github.com/go-goim/core/pkg/router"
)

type rootRouter struct {
Expand Down
Loading

0 comments on commit 8d30837

Please sign in to comment.