refactor: 对齐后端样例工程规范
This commit is contained in:
21
backend/iot/cmd/main/main.go
Normal file
21
backend/iot/cmd/main/main.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// IoT 进程入口;真实 MQTT TLS 适配将在设备协议和证书契约确认后接入。
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"git.apinb.com/bsm-sdk/core/printer"
|
||||
"git.apinb.com/heqiapp/platforms/backend/iot/internal/config"
|
||||
"git.apinb.com/heqiapp/platforms/backend/iot/internal/impl"
|
||||
)
|
||||
|
||||
func main() {
|
||||
config.New("PlatformIot")
|
||||
impl.NewImpl()
|
||||
printer.Info("[BSM - PlatformIot] Mock IoT adapter started; MQTT broker is not connected")
|
||||
quit := make(chan os.Signal, 1)
|
||||
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
|
||||
<-quit
|
||||
}
|
||||
Reference in New Issue
Block a user