Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
search_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
79162970
authored
Jul 01, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
619a1f25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
bat/searchGrpc.bat
cmd/search_server.go
bat/searchGrpc.bat
0 → 100644
View file @
79162970
set MICRO_REGISTRY=etcd
set MICRO_REGISTRY_ADDRESS=192.168.2.232:2379
go run ../cmd/search_server.go -config=../conf/config.ini
\ No newline at end of file
cmd/search_server.go
View file @
79162970
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
func
main
()
{
func
main
()
{
cService
:=
micro
.
NewService
(
cService
:=
micro
.
NewService
(
micro
.
Name
(
"go.micro.
server
.search"
))
micro
.
Name
(
"go.micro.
grpc
.search"
))
cService
.
Init
()
cService
.
Init
()
err
:=
bom
.
RegisterBomServiceHandler
(
cService
.
Server
(),
service
.
NewBomServiceImpl
())
err
:=
bom
.
RegisterBomServiceHandler
(
cService
.
Server
(),
service
.
NewBomServiceImpl
())
...
...
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