DR Protocol Server

shao b8bf49433e vet view il y a 2 jours
cmd 40568c68e2 patient_type il y a 1 semaine
common 6bcc0b643d DROS il y a 2 jours
config 6bcc0b643d DROS il y a 2 jours
logger 40568c68e2 patient_type il y a 1 semaine
models b8bf49433e vet view il y a 2 jours
rpc_idl @ c7adaf6cbe d40cd16257 view初始数据 il y a 3 jours
service b8bf49433e vet view il y a 2 jours
static 7efe08e74b vet view il y a 2 jours
.gitignore 40568c68e2 patient_type il y a 1 semaine
.gitmodules 40568c68e2 patient_type il y a 1 semaine
Makefile 40568c68e2 patient_type il y a 1 semaine
README.md 40568c68e2 patient_type il y a 1 semaine
go.mod 9fd5270fd5 view struct il y a 5 jours
go.sum 9fd5270fd5 view struct il y a 5 jours
main.go 40568c68e2 patient_type il y a 1 semaine

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