DR Protocol Server

shao 350e91a6d2 apr 2 päivää sitten
cmd 3a1b68a60c apr 5 päivää sitten
common 350e91a6d2 apr 2 päivää sitten
config 350e91a6d2 apr 2 päivää sitten
logger 40568c68e2 patient_type 2 viikkoa sitten
models 5609d302d2 apr 2 päivää sitten
rpc_idl @ 095f02566c 350e91a6d2 apr 2 päivää sitten
service 350e91a6d2 apr 2 päivää sitten
static 5609d302d2 apr 2 päivää sitten
.gitignore 40568c68e2 patient_type 2 viikkoa sitten
.gitmodules 40568c68e2 patient_type 2 viikkoa sitten
Makefile 40568c68e2 patient_type 2 viikkoa sitten
README.md 40568c68e2 patient_type 2 viikkoa sitten
go.mod 9fd5270fd5 view struct 2 viikkoa sitten
go.sum 9fd5270fd5 view struct 2 viikkoa sitten
main.go 40568c68e2 patient_type 2 viikkoa sitten

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