DR Protocol Server

shao d1c73553f4 GetProcedure GetView 5 dias atrás
cmd 40568c68e2 patient_type 2 semanas atrás
common d1c73553f4 GetProcedure GetView 5 dias atrás
config 6bcc0b643d DROS 1 semana atrás
logger 40568c68e2 patient_type 2 semanas atrás
models d1c73553f4 GetProcedure GetView 5 dias atrás
rpc_idl @ 0fc0d7bbb6 d1c73553f4 GetProcedure GetView 5 dias atrás
service d1c73553f4 GetProcedure GetView 5 dias atrás
static 7efe08e74b vet view 1 semana atrás
.gitignore 40568c68e2 patient_type 2 semanas atrás
.gitmodules 40568c68e2 patient_type 2 semanas atrás
Makefile 40568c68e2 patient_type 2 semanas atrás
README.md 40568c68e2 patient_type 2 semanas atrás
go.mod 9fd5270fd5 view struct 1 semana atrás
go.sum 9fd5270fd5 view struct 1 semana atrás
main.go 40568c68e2 patient_type 2 semanas atrás

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