DR Protocol Server

shao b8bf49433e vet view 19 시간 전
cmd 40568c68e2 patient_type 1 주 전
common 6bcc0b643d DROS 1 일 전
config 6bcc0b643d DROS 1 일 전
logger 40568c68e2 patient_type 1 주 전
models b8bf49433e vet view 19 시간 전
rpc_idl @ c7adaf6cbe d40cd16257 view初始数据 1 일 전
service b8bf49433e vet view 19 시간 전
static 7efe08e74b vet view 21 시간 전
.gitignore 40568c68e2 patient_type 1 주 전
.gitmodules 40568c68e2 patient_type 1 주 전
Makefile 40568c68e2 patient_type 1 주 전
README.md 40568c68e2 patient_type 1 주 전
go.mod 9fd5270fd5 view struct 3 일 전
go.sum 9fd5270fd5 view struct 3 일 전
main.go 40568c68e2 patient_type 1 주 전

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