DR Protocol Server

shao b8bf49433e vet view vor 20 Stunden
cmd 40568c68e2 patient_type vor 1 Woche
common 6bcc0b643d DROS vor 1 Tag
config 6bcc0b643d DROS vor 1 Tag
logger 40568c68e2 patient_type vor 1 Woche
models b8bf49433e vet view vor 20 Stunden
rpc_idl @ c7adaf6cbe d40cd16257 view初始数据 vor 1 Tag
service b8bf49433e vet view vor 20 Stunden
static 7efe08e74b vet view vor 21 Stunden
.gitignore 40568c68e2 patient_type vor 1 Woche
.gitmodules 40568c68e2 patient_type vor 1 Woche
Makefile 40568c68e2 patient_type vor 1 Woche
README.md 40568c68e2 patient_type vor 1 Woche
go.mod 9fd5270fd5 view struct vor 3 Tagen
go.sum 9fd5270fd5 view struct vor 3 Tagen
main.go 40568c68e2 patient_type vor 1 Woche

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