DR Protocol Server

shao f0c169fe42 patient_type 1 viikko sitten
cmd 40568c68e2 patient_type 1 viikko sitten
common 40568c68e2 patient_type 1 viikko sitten
config 40568c68e2 patient_type 1 viikko sitten
logger 40568c68e2 patient_type 1 viikko sitten
models 40568c68e2 patient_type 1 viikko sitten
rpc_idl @ fd1299aaac 40568c68e2 patient_type 1 viikko sitten
service 40568c68e2 patient_type 1 viikko sitten
static 40568c68e2 patient_type 1 viikko sitten
.gitignore 40568c68e2 patient_type 1 viikko sitten
.gitmodules 40568c68e2 patient_type 1 viikko sitten
Makefile 40568c68e2 patient_type 1 viikko sitten
README.md 40568c68e2 patient_type 1 viikko sitten
go.mod 40568c68e2 patient_type 1 viikko sitten
go.sum 40568c68e2 patient_type 1 viikko sitten
main.go 40568c68e2 patient_type 1 viikko 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