FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UserMainService/main.go at master · ZeroTechh/UserMainService · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ZeroTechh
/
UserMainService
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UserMainService
/
main.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (28 loc) · 801 Bytes
Breadcrumbs
UserMainService
/
main.go
Copy path
File metadata and controls
32 lines (28 loc) · 801 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package
main
import
(
"go.uber.org/zap"
"github.com/ZeroTechh/UserMainService/handler"
"github.com/ZeroTechh/VelocityCore/logger"
proto
"github.com/ZeroTechh/VelocityCore/proto/UserMainService"
"github.com/ZeroTechh/VelocityCore/services"
"github.com/ZeroTechh/VelocityCore/utils"
"github.com/ZeroTechh/hades"
)
var
(
config
=
hades
.
GetConfig
(
"main.yaml"
, []
string
{
"config"
})
log
=
logger
.
GetLogger
(
config
.
Map
(
"service"
).
Str
(
"logFile"
),
config
.
Map
(
"service"
).
Bool
(
"debug"
),
)
)
func
main
() {
defer
utils
.
HandlePanic
(
log
)
grpcServer
,
listner
:=
utils
.
CreateGRPCServer
(
services
.
UserMainService
,
log
,
)
proto
.
RegisterUserMainServer
(
grpcServer
,
handler
.
New
())
if
err
:=
grpcServer
.
Serve
(
*
listner
);
err
!=
nil
{
log
.
Fatal
(
"Service Failed With Error"
,
zap
.
Error
(
err
))
}
}
Back
|
FazBrowse Home
|
New Git URL