DR Protocol Server

shao 09b57c5394 first commit пре 1 недеља
cmd 09b57c5394 first commit пре 1 недеља
common 09b57c5394 first commit пре 1 недеља
config 09b57c5394 first commit пре 1 недеља
logger 09b57c5394 first commit пре 1 недеља
models 09b57c5394 first commit пре 1 недеља
rpc_idl @ 41e78dbf6c 09b57c5394 first commit пре 1 недеља
service 09b57c5394 first commit пре 1 недеља
static 09b57c5394 first commit пре 1 недеља
.gitignore 09b57c5394 first commit пре 1 недеља
.gitmodules 09b57c5394 first commit пре 1 недеља
Makefile 09b57c5394 first commit пре 1 недеља
README.md 09b57c5394 first commit пре 1 недеља
go.mod 09b57c5394 first commit пре 1 недеља
go.sum 09b57c5394 first commit пре 1 недеља
main.go 09b57c5394 first commit пре 1 недеља

README.md

DR Protocol Server

env

  • golang 1.24
  • postgres14

run

go run main.go run

deploy

# vim /etc/systemd/system/protocol-server.service
[Unit]
Description=dr protocol service
After=network.target
 
[Service]
Type=simple
WorkingDirectory=xxx/DRProtocolServer
ExecStart=xxx/DRProtocolServer/protocol-server run
 
[Install]
WantedBy=multi-user.target

# 重新加载systemd配置
sudo systemctl daemon-load

# 启动服务
sudo systemctl restart protocol-server.service