Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
im-microservice
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Li Feifei
im-microservice
Commits
88ab1f8d
Commit
88ab1f8d
authored
Jul 02, 2020
by
李洪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码冲突
parent
1db452e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
main.go
main.go
+5
-2
No files found.
main.go
View file @
88ab1f8d
...
...
@@ -16,9 +16,9 @@ import (
"im-microservice/helper"
"im-microservice/pb"
"im-microservice/sevice/im_chat_room"
ic
"im-microservice/sevice/im_configure"
"im-microservice/sevice/im_user"
iur
"im-microservice/sevice/im_user_relationship"
ic
"im-microservice/sevice/im_configure"
"golang.org/x/net/context"
"google.golang.org/grpc"
...
...
@@ -26,7 +26,6 @@ import (
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/reflection"
"google.golang.org/grpc/status"
)
...
...
@@ -143,11 +142,15 @@ func main() {
var
opts
[]
grpc
.
ServerOption
opts
=
append
(
opts
,
grpc
.
UnaryInterceptor
(
auth
))
s
:=
grpc
.
NewServer
(
opts
...
)
// s := grpc.NewServer()
srv
:=
NewServer
()
pb
.
RegisterHealthServer
(
s
,
srv
)
pb
.
RegisterConfigureSeviceServer
(
s
,
&
ic
.
ConfigureSevice
{})
pb
.
RegisterChatRoomServiceServer
(
s
,
&
im_chat_room
.
ImChatRoomService
{})
pb
.
RegisterImUserServer
(
s
,
&
im_user
.
ImUserServer
{})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment