DR Protocol Server

shao 3a1b68a60c apr 5 dni temu
cmd 3a1b68a60c apr 5 dni temu
common d1c73553f4 GetProcedure GetView 1 tydzień temu
config 6bcc0b643d DROS 1 tydzień temu
logger 40568c68e2 patient_type 2 tygodni temu
models 3a1b68a60c apr 5 dni temu
rpc_idl @ 0a599189f9 3a1b68a60c apr 5 dni temu
service 3a1b68a60c apr 5 dni temu
static 3a1b68a60c apr 5 dni temu
.gitignore 40568c68e2 patient_type 2 tygodni temu
.gitmodules 40568c68e2 patient_type 2 tygodni temu
Makefile 40568c68e2 patient_type 2 tygodni temu
README.md 40568c68e2 patient_type 2 tygodni temu
go.mod 9fd5270fd5 view struct 2 tygodni temu
go.sum 9fd5270fd5 view struct 2 tygodni temu
main.go 40568c68e2 patient_type 2 tygodni temu

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