DR Protocol Server

shao b8bf49433e vet view пре 2 дана
cmd 40568c68e2 patient_type пре 1 недеља
common 6bcc0b643d DROS пре 2 дана
config 6bcc0b643d DROS пре 2 дана
logger 40568c68e2 patient_type пре 1 недеља
models b8bf49433e vet view пре 2 дана
rpc_idl @ c7adaf6cbe d40cd16257 view初始数据 пре 3 дана
service b8bf49433e vet view пре 2 дана
static 7efe08e74b vet view пре 2 дана
.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 пре 5 дана
go.sum 9fd5270fd5 view struct пре 5 дана
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